-1

How to add fonts to iText Java API?In which file of source code I have to make changes to add my set of fonts which is located on my system in .ttf format?

sagar
  • 1
  • What you done so far? And Is [this](http://stackoverflow.com/q/6922959/1064610) helpfull? –  Feb 15 '13 at 06:30

1 Answers1

1

Try this:

BaseFont base = BaseFont.createFont("c:/windows/fonts/arial.ttf", BaseFont.WINANSI);
Font font = new Font(base, 11f, Font.BOLD);

See the BaseFont class too

CloudyMarble
  • 36,908
  • 70
  • 97
  • 130