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.

Class Subset


Namespace: Com\Tecnick\Pdf\Font
Package: PdfFont
Category: Library
Copyright: 2011-2015 Nicola Asuni - LTD
License: GNU-LGPL v3 (see LICENSE.TXT)
Author: Nicola Asuni
Since: 2011-05-23
Located at Subset.php
Methods summary
# __construct( string $font, array $fdt, array $subchars = array() )

Process TrueType font

public string
# getSubsetFont( )

Get all the extracted font metrics

protected integer
# getTableChecksum( string $table, integer $length )

Returs the checksum of a TTF table.

# addCompositeGlyphs( )

Add composite glyphs

protected array
# findCompositeGlyphs( array $new_sga, integer $key )

Add composite glyphs

# removeUnusedTables( )

Remove unused tables

# addProcessedTables( )

Add glyf and loca tables

# buildSubsetFont( )

build new subset font

Properties summary
protected string $font

Content of the input font file

# ''
protected Com\Tecnick\File\Byte $fbyte

Object used to read font bytes

protected array $fdt

Extracted font metrics

# array()
protected array $subglyphs

Array containing subset glyphs indexes of chars from cmap table

# array()
protected string $subfont

Subset font

# ''

© 2004-2020 – Nicola Asuni - - All rights reserved.
about - disclaimer - privacy