Type1 is a format of outline fonts developed by Adobe. An AFM file is necessary to use an external Type1 font with Polybios. When a Hollywood script uses an external Type1 font, it has to invoke doc:LoadType1Font() before invoking doc:GetFont(). The return value of doc:LoadType1Font() is used as the font name parameter of doc:GetFont(). If a PFA/PFB file is specified when invoking doc:LoadType1Font(), the glyph data of the font is embedded into the PDF file. Otherwise, only metrics data in AFM file is embedded.
Here is an example:
fontname = doc:LoadType1Font("a010013l.afm", "a010013l.pfb") hfont = doc:GetFont(fontname, "CP1250") page:SetFontAndSize(hfont, 10.5) |