class HexaPDF:: Type:: FontType1
Parent | HexaPDF::Type::FontSimple |
---|
Represents a Type1 font.
PDF provides 14 built-in fonts that all PDF readers must understand. These 14 fonts are known as the “Standard 14 Fonts” and are all Type1 fonts. HexaPDF
supports these fonts.
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 | :Type1 |
BaseFont | Symbol | true | nil |
Public Instance Methods
Returns the bounding box of the font or nil
if it is not found.
Calls superclass method
HexaPDF::Type::Font#bounding_box
Overrides the default to provide a font wrapper in case none is set and the font is one of the standard fonts.
See: Font#font_wrapper
Calls superclass method
HexaPDF::Type::Font#font_wrapper
Returns true
if the font is a symbolic font, false
if it is not, and nil
if it is not known.
Calls superclass method
HexaPDF::Type::FontSimple#symbolic?
Returns the unscaled width of the given code point in glyph units, or 0 if the width for the code point is missing.
Calls superclass method
HexaPDF::Type::FontSimple#width