Hello all, here is my scenario and what I want to do.

I am trying to use Postscript fonts but I'm unable to do so. Here is the code:

BaseFont frutiger = BaseFont.createFont(FRUTIGER_ROMAN, BaseFont.CP1252, BaseFont.EMBEDDED);
Font FRUTIGER_BLACK_12 = new Font(frutiger, 12);

FRUTIGER_ROMAN is the name of a static String variable:

public static String FRUTIGER_ROMAN = "FrutigerLT-Roman";

but I'm getting an error saying it can't find the font with Cp1252 encoding

Maybe is the encoding, maybe is the font.

I'm on Mac OS X 10.3.3 with Java 1.4.2. The font is from Adobe and is a mac file. I also have the pfm but not the PFB. Can I use this file with your wonderful framework? Do I have to convert it? It has AdobeStandardEncoding.

I converted the font to truetype using unicode encoding but can get the EURO symbol displayed from the data on my database.

Can I set the encoding of a BaseFont to Unicode?

Thanks a lot
Oscar

Reply via email to