class HexaPDF::Type::FontType3

Parent

Represents a Type 3 font.

Note: We assume the /FontMatrix is only used for scaling, i.e. of the form [x 0 0 +/-x 0 0]. If it is of a different form, things won’t work correctly. This will be handled once such a case is found.

See: PDF2.0 s9.6.4

Field Definitions

NameType/Allowed ValuesRequiredDefault Value
TypeSymboltrue:Font
ToUnicodeHexaPDF::Stream or Hashfalsenil
FirstCharIntegerfalsenil
LastCharIntegerfalsenil
WidthsHexaPDF::PDFArray or Arrayfalsenil
FontDescriptorHexaPDF::Type::FontDescriptor or Hashfalsenil
EncodingHexaPDF::Dictionary or Symbol or Hashfalsenil
SubtypeSymboltrue:Type3
NameSymbolfalsenil
FontBBoxHexaPDF::Rectangle or Arraytruenil
FontMatrixHexaPDF::PDFArray or Arraytruenil
CharProcsHexaPDF::Dictionary or Hashtruenil
ResourcesHexaPDF::Dictionary or Hashfalsenil

Public Instance Methods

bounding_box()

Returns the bounding box of the font.

glyph_scaling_factor()

Returns the glyph scaling factor for transforming from glyph space to text space.