setasign\SetaPDF2\Core\Font\TrueType\Subset\Table

Header This class represents the "head" table in a sub-setting context.

File: /SetaPDF v2/Core/Font/TrueType/Subset/Table/Header.php
Old class name (alias): \SetaPDF_Core_Font_TrueType_Subset_Table_Header

See https://www.microsoft.com/typography/otspec/head.htm for more details.

Class hierarchy

Summary

Properties

$_changedData

protected array AbstractTable::$_changedData = array()

The modified data.

$_originalTable


Static Methods

getClassName()

public static AbstractTable::getClassName (
string $tag
): string

Get a class name by tag name.

Parameters
$tag : string
 
Exceptions

Throws \InvalidArgumentException


Methods

__construct()

cleanUp()

public AbstractTable::cleanUp (
void
): void

Release memory and cycled references.

getBoundingBox()

public Header::getBoundingBox (
void
): int[]

Get the bounding box.

getOriginalTable()

Gets the original table.

setCheckSumAdjustment()

public Header::setCheckSumAdjustment (
string $value
): void

Sets the checksum adjustment.

Parameters
$value : string
 

setIndexToLocFormat()

public Header::setIndexToLocFormat (
int $format
): void

Set the "loca" location format.

0 for short offsets (Offset16), 1 for long (Offset32).

Parameters
$format : int
 
See

setModified()

public Header::setModified (
int $value
): void

Set the modified time.

Number of seconds since 12:00 midnight that started January 1st 1904 in GMT/UTC time zone.

Parameters
$value : int
 

setRevision()

public Header::setRevision (
float $value
): void

Set the font revision.

Value comes from the font manufacturer.

Parameters
$value : float
 

setXMax()

public Header::setXMax (
int $xMax
): void

Set the xMax value.

Parameters
$xMax : int
 

setXMin()

public Header::setXMin (
int $xMin
): void

Set the xMin value.

Parameters
$xMin : int
 

setYMax()

public Header::setYMax (
int $yMax
): void

Set the yMax value.

Parameters
$yMax : int
 

setYMin()

public Header::setYMin (
int $yMin
): void

Set the yMin value.

Parameters
$yMin : int
 

write()

Writes the table.

Parameters
$writer : \SetaPDF_Core_Writer_WriterInterface