setasign\SetaPDF2\Core\Font\TrueType\Table\GlyphData

Glyph A class representing a glyph.

File: /SetaPDF v2/Core/Font/TrueType/Table/GlyphData/Glyph.php
Old class name (alias): \SetaPDF_Core_Font_TrueType_Table_GlyphData_Glyph

Class hierarchy

Summary

Properties

$_glyphData

$_length

protected int Glyph::$_length

Length of this glyph

$_offset

protected int Glyph::$_offset

Offset of this glyph


Methods

__construct()

public Glyph::__construct (
\SetaPDF_Core_Font_TrueType_Table_GlyphData $glyphData,
int $offset,
int $length
)

The constructor.

Parameters
$glyphData : \SetaPDF_Core_Font_TrueType_Table_GlyphData
 
$offset : int

The byte offset position for this glyph

$length : int

The byte length of this glyph

_read()

private Glyph::_read (
int $offset,
string $method = 'readInt16'
): int|mixed

Read a value for this glyph.

Parameters
$offset : int
 
$method : string
 

cleanUp()

public Glyph::cleanUp (
void
): void

Release memory.

getGlyphData()

public Glyph::getGlyphData (
void
): void

getLength()

public Glyph::getLength (
void
): int

Get the byte length of this glyph.

getNumberOfContours()

public Glyph::getNumberOfContours (
void
): int

Get the number of contours of this glyph.

getRawHeader()

public Glyph::getRawHeader (
void
): void

getXMax()

public Glyph::getXMax (
void
): int

Get the maximum x for coordinate data.

getXMin()

public Glyph::getXMin (
void
): int

Get the minimum x for coordinate data.

getYMax()

public Glyph::getYMax (
void
): int

Get the maximum y for coordinate data.

getYMin()

public Glyph::getYMin (
void
): int

Get the minimum y for coordinate data.

isComposite()

public Glyph::isComposite (
void
): bool

Check if the glyph is a composite glyph.