Menu

#3 TrueType Font does not appear in PDF file

open
nobody
None
5
2006-04-02
2006-04-02
Ruben
No

Hello,
When I use an external trueType font, it does not
appear in the PDF file.
I used:
ttf2pt1 -b -a Code2Font.TTF Code2Font

PdfType1FontDef* ftFD= new PdfType1FontDef();
ftFD->LoadFromFile("Code2Font.afm","Code2Font.pfb");
doc->AddType1Font(ftFD, "Code2Font", new
PdfStandardEncoding());

canvas->SetFontAndSize("Code2Font", 12.0);

The text from the internal fonts shows up in the PDF
file, but after I load the external font, "Code2Font",
I only see one small box, the size of one character.

Am I doing something wrong?

Discussion


Log in to post a comment.