class HexaPDF::Type::CIDFont


Represents a generic CIDFont which can only be used as a descendant font of a composite PDF font.

See: PDF2.0 s9.7.4

Public Instance Methods

set_widths(widths, default_width: DEFAULT_WIDTH)

Sets the /W and /DW keys using the given array of [CID, width] pairs and an optional default width.

See: PDF2.0 s9.7.4.3


Returns the unscaled width of the given CID in glyph units, or 0 if the width for the CID is missing.

Note that in contrast to other fonts, the argument must not be a code point but a CID!