4.10 CID fonts

CID fonts are a multi-byte character font format developed by Adobe. Two simplified Chinese fonts, one traditional Chinese fonts, four Japanese fonts, and four Korean fonts are available in Polybios. Hollywood scripts have to invoke the following functions once before using CID fonts:

doc:UseCNSFonts()
Makes simplified Chinese fonts (SimSun, SimHei) become available.

doc:UseCNTFonts()
Makes traditional Chinese fonts (MingLiU) become available.

doc:UseJPFonts()
Makes Japanese fonts (MS-Mincyo, MS-Gothic, MS-PMincyo, MS-PGothic) become available.

doc:UseKRFonts()
Makes Korean fonts (Batang, Dotum, BatangChe, DotumChe) become available.

Here is an example:

 
doc:UseJPFonts()
doc:UseJPEncodings()
hfont = doc:GetFont("MS-Mincyo", "90ms-RKSJ-H")
page:SetFontAndSize(hfont, 10.5)


Show TOC