setasign\SetaPDF2\Core\Font
Descriptor Class representing a font descriptor
File: /SetaPDF v2/Core/Font/Descriptor.php
Old class name (alias):
\SetaPDF_Core_Font_Descriptor
Class hierarchy
Summary
Methods
- __construct()
- _get()
- _getFontFile()
- getAscent()
- getAvgWidth()
- getCapHeight()
- getDescent()
- getDictionary()
- getFlags()
- getFontBBox()
- getFontFamily()
- getFontFile()
- getFontFile2()
- getFontFile3()
- getFontName()
- getFontStretch()
- getFontWeight()
- getItalicAngle()
- getLeading()
- getMaxWidth()
- getMissingWidth()
- getStemH()
- getStemV()
- getXHeight()
Properties
$_dictionary
The dictionary
Methods
__construct()
The constructor.
Parameters
- $indirectObjectOrDictionary : \SetaPDF_Core_Type_IndirectObjectInterface|\SetaPDF_Core_Type_Dictionary
Exceptions
Throws \InvalidArgumentException
_get()
Helper method to get values from a font descriptor.
Parameters
- $key : string
- $default : ?mixed
Exceptions
Throws Exception
getAscent()
Get the maximum height above the baseline reached by glyphs in this font.
Exceptions
Throws Exception
getAvgWidth()
getCapHeight()
Get the vertical coordinate of the top of flat capital letters, measured from the baseline.
Exceptions
Throws Exception
getDescent()
getFlags()
getFontBBox()
Get a rectangle, expressed in the glyph coordinate system, that shall specify the font bounding box.
getFontFamily()
getFontFile3()
Get a stream containing a font program whose format is specified by the Subtype entry in the stream dictionary.
getFontName()
getFontStretch()
getFontWeight()
Get the weight (thickness) component of the fully-qualified font name or font specifier.
Exceptions
Throws Exception
getItalicAngle()
Get the angle, expressed in degrees counterclockwise from the vertical, of the dominant vertical strokes of the font.
Exceptions
Throws Exception
getLeading()
getMaxWidth()
getMissingWidth()
Get the width to use for character codes whose widths are not specified in a font dictionary's Widths array.
Exceptions
Throws Exception
getStemH()
Get the thickness, measured vertically, of the dominant horizontal stems of glyphs in the font.
Exceptions
Throws Exception
getStemV()
Get the thickness, measured horizontally, of the dominant vertical stems of glyphs in the font.
Exceptions
Throws Exception
getXHeight()
Get the font’s x height.
The vertical coordinate of the top of flat nonascending lowercase letters (like the letter x), measured from the baseline, in fonts that have Latin characters.
Exceptions
Throws Exception