phpdftk API Documentation

AfmData
in package

FinalYes

Table of Contents

Properties

$ascender  : float
$capHeight  : float
$descender  : float
$fontBBox  : array<string|int, mixed>
$italicAngle  : float
$missingWidth  : float
$stemV  : float
$widths  : array<string|int, mixed>
$xHeight  : float

Methods

__construct()  : mixed
getWidth()  : int

Properties

$ascender read-only

public float $ascender

$capHeight read-only

public float $capHeight

$descender read-only

public float $descender

$fontBBox read-only

public array<string|int, mixed> $fontBBox

$italicAngle read-only

public float $italicAngle

$missingWidth read-only

public float $missingWidth

$stemV read-only

public float $stemV

$widths read-only

public array<string|int, mixed> $widths

$xHeight read-only

public float $xHeight

Methods

__construct()

public __construct(float $ascender, float $descender, float $capHeight, float $xHeight, float $italicAngle, float $stemV, float $missingWidth, array{float, float, float, float} $fontBBox, array<string, int> $widths) : mixed
Parameters
$ascender : float
$descender : float
$capHeight : float
$xHeight : float
$italicAngle : float
$stemV : float
$missingWidth : float
$fontBBox : array{float, float, float, float}

[llx,lly,urx,ury]

$widths : array<string, int>

Glyph name => width in 1/1000 em

getWidth()

public getWidth(string $glyphName) : int
Parameters
$glyphName : string
Return values
int

        
On this page

Search results