SetaPDF_Core_Font_Descriptor Class representing a font descriptor

File: /SetaPDF/Core/Font/Descriptor.php

Class hierarchy

Summary

Properties

$_indirectObject

The indirect object of the font descriptor


Methods

_get()

private mixed|null SetaPDF_Core_Font_Descriptor::_get ( string $key [, null|mixed $default = null ] )

Helper method to get values from a font descriptor.

Parameters
$key : string
 
$default : null|mixed
 
Exceptions

Throws SetaPDF_Core_Font_Exception

_getFontFile()

Helper methid to get font file entries.

Parameters
$key : string
 

getAscent()

public number|false SetaPDF_Core_Font_Descriptor::getAscent ( void )

Get the maximum height above the baseline reached by glyphs in this font.

getAvgWidth()

Get the average width of glyphs in the font.

getCapHeight()

public number|false SetaPDF_Core_Font_Descriptor::getCapHeight ( void )

Get the vertical coordinate of the top of flat capital letters, measured from the baseline.

getDescent()

public number|false SetaPDF_Core_Font_Descriptor::getDescent ( void )

Get the maximum depth below the baseline reached by glyphs in this font.

getDictionary()

Get the font descriptor dictionary.

getFlags()

Get a collection of flags defining various characteristics of the font.

getFontBBox()

public array|false SetaPDF_Core_Font_Descriptor::getFontBBox ( void )

Get a rectangle, expressed in the glyph coordinate system, that shall specify the font bounding box.

getFontFamily()

public string|false SetaPDF_Core_Font_Descriptor::getFontFamily ( void )

Get the preferred font family name.

getFontFile()

Get a stream containing a Type 1 font program.

getFontFile2()

Get a stream containing a TrueType font program.

getFontFile3()

Get a stream containing a font program whose format is specified by the Subtype entry in the stream dictionary.

getFontName()

Get the PostScript name of the font.

getFontStretch()

public string|false SetaPDF_Core_Font_Descriptor::getFontStretch ( void )

Get the font stretch value.

getFontWeight()

public number|false SetaPDF_Core_Font_Descriptor::getFontWeight ( void )

Get the weight (thickness) component of the fully-qualified font name or font specifier.

getItalicAngle()

Get the angle, expressed in degrees counterclockwise from the vertical, of the dominant vertical strokes of the font.

getLeading()

Get the spacing between baselines of consecutive lines of text.

getMaxWidth()

Get the maximum width of glyphs in the font.

getMissingWidth()

Get the width to use for character codes whose widths are not specified in a font dictionary's Widths array.

getStemH()

public number SetaPDF_Core_Font_Descriptor::getStemH ( void )

Get the thickness, measured vertically, of the dominant horizontal stems of glyphs in the font.

getStemV()

public number|false SetaPDF_Core_Font_Descriptor::getStemV ( void )

Get the thickness, measured horizontally, of the dominant vertical stems of glyphs in the font.

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.