FontSpec
Platform-neutral descriptor for picking a substitute system font when a document font ships no embedded outlines (e.g. the PDF Standard-14, or a CSS font with no @font-face file). Render backends map family + bold + italic to a host typeface, and language to a face that draws that language's own glyph forms. No PDF (or other format) types cross the canvas seam, so every document handler (PDF, EPUB, ...) feeds the same FontSpec.
Constructors
Properties
The CJK script language is written in, or null for a language outside CJK or none.
The BCP 47 tag of the language the text is written in, such as ja, or null when the document does not say. One Han character has a Japanese, a Simplified Chinese, a Traditional Chinese and a Korean form, and a generic serif face draws only one of them, so a substitute for a CJK font needs a face of its own language. A PDF CIDFont names it through the character collection of its CIDSystemInfo (ISO 32000-1, 9.7.3, #472): Adobe-Japan1 is ja, Adobe-GB1 zh-Hans, Adobe-CNS1 zh-Hant and Adobe-Korea1 ko.