class HexaPDF:: Type:: FontType3
Parent | HexaPDF::Type::FontSimple |
---|
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
Name | Type/Allowed Values | Required | Default Value |
---|---|---|---|
Type | Symbol | true | :Font |
ToUnicode | HexaPDF::Stream or Hash | false | nil |
Name | Symbol | false | nil |
FirstChar | Integer | false | nil |
LastChar | Integer | false | nil |
Widths | HexaPDF::PDFArray or Array | false | nil |
FontDescriptor | HexaPDF::Type::FontDescriptor or Hash | false | nil |
Encoding | HexaPDF::Dictionary or Symbol or Hash | false | nil |
Subtype | Symbol | true | :Type3 |
FontBBox | HexaPDF::Rectangle or Array | true | nil |
FontMatrix | HexaPDF::PDFArray or Array | true | nil |
CharProcs | HexaPDF::Dictionary or Hash | true | nil |
Resources | HexaPDF::Dictionary or Hash | false | nil |
Public Instance Methods
Returns the bounding box of the font.
Returns the glyph scaling factor for transforming from glyph space to text space.