TrueType Font does not appear in PDF file
Brought to you by:
takeshi_kanno,
tony2001
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?