Documentation

AbstractStandard
in package

AbstractYes

Pdf abstract standard font class

Tags
category

Pop

author

Nick Sagona, III nick@popphp.org

copyright

Copyright (c) 2009-2026 Nick Sagona, III

license

https://www.popphp.org/license New BSD License

version
6.0.0

Table of Contents

Properties

$cmap  : array<string|int, mixed>
Font character map
$glyphWidths  : array<string|int, mixed>
Font glyph widths
$unitsPerEm  : int
Font units per em

Methods

getGlyphWidth()  : mixed
Get character glyph width
getUnitsPerEm()  : int
Get units per em
hasGlyph()  : bool
Determine if this font's character map has a glyph for the given codepoint

Properties

$glyphWidths

Font glyph widths

protected array<string|int, mixed> $glyphWidths = []

Methods

getGlyphWidth()

Get character glyph width

public getGlyphWidth(int $code) : mixed
Parameters
$code : int

getUnitsPerEm()

Get units per em

public getUnitsPerEm() : int
Return values
int

hasGlyph()

Determine if this font's character map has a glyph for the given codepoint

public hasGlyph(int $code) : bool
Parameters
$code : int
Return values
bool

        
On this page

Search results