This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes lowagie fonts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "lowagie fonts" Watch "lowagie fonts" New topic
Author

lowagie fonts

age spets
Ranch Hand

Joined: Aug 07, 2002
Posts: 68
This works:
BaseFont rotis = BaseFont.createFont(fontroot+"ROTISS_0.ttf", BaseFont.CP1252, BaseFont.EMBEDDED);
font = new Font(rotis, size);
This does not work:
BaseFont Egyptienne = BaseFont.createFont(fontroot+"e046013t.pfm", BaseFont.CP1252, BaseFont.EMBEDDED);
fontbunn = new Font(Egyptienne, 24);

Error:Font 'c:\winnt\fonts\e046013t.pfm' with 'Cp1252' is not recognized.

Looks for me thar CP1252 is not correct basefont for URWEgyptienne. Or is it that I could not get the PFB file in the font directory? Get the error that the file is destoyed.

Any ideas? Have tried alot of other basefonts with no luck...

Age
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: lowagie fonts
 
Similar Threads
Can you send OutputStream to a named printer?
How to write single byte and double byte characters on pdf using java api(iText)
How insert page footer in pdf when copy the pdf
iText - copying bold text
Generate PDF