classes-Com-Tecnick-Pdf-Font-Subset

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.

Subset

Com\Tecnick\Pdf\Font\Subset

Tags
since
2011-05-23
category

Library

author

Nicola Asuni info@tecnick.com

copyright

2011-2015 Nicola Asuni - Tecnick.com LTD

license

http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)

link
https://github.com/tecnickcom/tc-lib-pdf-font

Table of Contents

$fbyte  : Byte
Object used to read font bytes
$fdt  : array<string|int, mixed>
Extracted font metrics
$font  : string
Content of the input font file
$subfont  : string
Subset font
$subglyphs  : array<string|int, mixed>
Array containing subset glyphs indexes of chars from cmap table
__construct()  : mixed
Process TrueType font
getSubsetFont()  : string
Get all the extracted font metrics
addCompositeGlyphs()  : mixed
Add composite glyphs
addProcessedTables()  : mixed
Add glyf and loca tables
buildSubsetFont()  : mixed
build new subset font
findCompositeGlyphs()  : array<string|int, mixed>
Add composite glyphs
getTableChecksum()  : int
Returs the checksum of a TTF table.
removeUnusedTables()  : mixed
Remove unused tables

Properties

$fbyte

Object used to read font bytes

protected Byte $fbyte

$fdt

Extracted font metrics

protected array<string|int, mixed> $fdt = array()

$font

Content of the input font file

protected string $font = ''

$subfont

Subset font

protected string $subfont = ''

$subglyphs

Array containing subset glyphs indexes of chars from cmap table

protected array<string|int, mixed> $subglyphs = array()

Methods

__construct()

Process TrueType font

public __construct(string $font, array<string|int, mixed> $fdt[, array<string|int, mixed> $subchars = array() ]) : mixed
Parameters
$font : string

Content of the input font file

$fdt : array<string|int, mixed>

Extracted font metrics

$subchars : array<string|int, mixed> = array()

Array containing subset chars

Tags
throws
Exception

in case of error

Return values
mixed

getSubsetFont()

Get all the extracted font metrics

public getSubsetFont() : string
Return values
string

addCompositeGlyphs()

Add composite glyphs

protected addCompositeGlyphs() : mixed
Return values
mixed

addProcessedTables()

Add glyf and loca tables

protected addProcessedTables() : mixed
Return values
mixed

buildSubsetFont()

build new subset font

protected buildSubsetFont() : mixed
Return values
mixed

findCompositeGlyphs()

Add composite glyphs

protected findCompositeGlyphs(array<string|int, mixed> $new_sga, int $key) : array<string|int, mixed>
Parameters
$new_sga : array<string|int, mixed>
$key : int
Return values
array<string|int, mixed>

getTableChecksum()

Returs the checksum of a TTF table.

protected getTableChecksum(string $table, int $length) : int
Parameters
$table : string

Table to check

$length : int

Length of table in bytes

Return values
int

checksum

removeUnusedTables()

Remove unused tables

protected removeUnusedTables() : mixed
Return values
mixed
 

© 2004-2021 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy