4.6 Font types

There are several types of fonts available in Polybios.

Base14 font:
The built-in font of PDF. Available in all viewer applications.

Type1 font:
A font format used by PostScript.

TrueType font:
Widely used outline font format.

CID font:
Font format for multi-byte characters. Developed by Adobe.

Hollywood scripts can use doc:GetFont() to get a font handle. Before that, one of the following functions must be used to load the font before invoking doc:GetFont(): (except for Base14 fonts, those are always available and needn't be loaded)

 
HPDF_LoadType1FontFromFile()
HPDF_LoadTTFontFromFile()
HPDF_LoadTTFontFromFile2()
HPDF_UseCNSFonts()
HPDF_UseCNTFonts()
HPDF_UseJPFonts()
HPDF_UseKRFonts()


Show TOC