SetaPDF_Core_Font_Descriptor Class representing a font descriptor
File: /SetaPDF v2/Core/Font/Descriptor.php
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
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 : null|mixed
Exceptions
Throws SetaPDF_Core_Font_Exception
getAscent()
Get the maximum height above the baseline reached by glyphs in this font.
Exceptions
Throws SetaPDF_Core_Font_Exception
getAvgWidth()
getCapHeight()
Get the vertical coordinate of the top of flat capital letters, measured from the baseline.
Exceptions
Throws SetaPDF_Core_Font_Exception
getDescent()
Get the maximum depth below the baseline reached by glyphs in this font.
Exceptions
Throws SetaPDF_Core_Font_Exception
getFlags()
Get a collection of flags defining various characteristics of the font.
Exceptions
Throws SetaPDF_Core_Font_Exception
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 SetaPDF_Core_Font_Exception
getItalicAngle()
Get the angle, expressed in degrees counterclockwise from the vertical, of the dominant vertical strokes of the font.
Exceptions
Throws SetaPDF_Core_Font_Exception
getLeading()
Get the spacing between baselines of consecutive lines of text.
Exceptions
Throws SetaPDF_Core_Font_Exception
getMaxWidth()
getMissingWidth()
Get the width to use for character codes whose widths are not specified in a font dictionary's Widths array.
Exceptions
Throws SetaPDF_Core_Font_Exception
getStemH()
Get the thickness, measured vertically, of the dominant horizontal stems of glyphs in the font.
Exceptions
Throws SetaPDF_Core_Font_Exception
getStemV()
Get the thickness, measured horizontally, of the dominant vertical stems of glyphs in the font.
Exceptions
Throws SetaPDF_Core_Font_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 SetaPDF_Core_Font_Exception