PDF-Class-raku

[Raku PDF Project] / [PDF-Class Module]

has PDF::COS::Name $.BaseFont

(Required) The PostScript name of the CIDFont. For Type 0 CIDFonts, this is usually the value of the CIDFontName entry in the CIDFont program. For Type 2 CIDFonts, it is derived the same way as for a simple TrueType font

has PDF::CIDSystemInfo $.CIDSystemInfo

(Required) A dictionary containing entries that define the character collection of the CIDFont.

has PDF::FontDescriptor::CID $.FontDescriptor

(Required; must be an indirect reference) A font descriptor describing the CIDFont’s default metrics other than its glyph widths

has UInt $.DW

(Optional) The default width for glyphs in the CIDFont

has Positional @.W

(Optional) A description of the widths for the glyphs in the CIDFont. The array’s elements have a variable format that can specify individual widths for consecutive CIDs or one width for a range of CIDs

has Positional[Numeric] @.DW2

(Optional; applies only to CIDFonts used for vertical writing) An array of two numbers specifying the default metrics for vertical writing

has Positional[Numeric] @.W2

(Optional; applies only to CIDFonts used for vertical writing) A description of the metrics for vertical writing for the glyphs in the CIDFont

has PDF::Font::CIDFont::StreamOrIdentity $.CIDToGIDMap

to glyph indices. If the value is a stream, the bytes in the stream contain the mapping from CIDs to glyph indices: the glyph index for a particular CID value c is a 2-byte value stored in bytes 2 × c and 2 × c + 1, where the first byte is the high-order byte. If the value of CIDToGIDMap is a name, it must be Identity, indicating that the mapping between CIDs and glyph indices is the identity mapping