PHP Class TTFontFile, TeamPass

Exibir arquivo Open project: nilsteampassnet/TeamPass Class Usage Examples

Public Properties

Property Type Description
$_pos
$ascent
$bbox
$capHeight
$charToGlyph
$charWidths
$defaultWidth
$descent
$entrySelector
$familyName
$fh
$filename
$flags
$fullName
$glyphPos
$hmetrics
$italicAngle
$maxStrLenRead
$maxUni
$name
$numTables
$otables
$rangeShift
$searchRange
$stemV
$styleName
$tables
$underlinePosition
$underlineThickness
$uniqueFontID
$unitsPerEm

Public Methods

Method Description
__construct ( )
_set_short ( $stream, $offset, $val )
_set_ushort ( $stream, $offset, $value )
add ( $tag, $data )
calcChecksum ( $data )
endTTFile ( &$stm ) Put the TTF file together
extractInfo ( )
getCMAP4 ( $unicode_cmap_offset, &$glyphToChar, &$charToGlyph ) CMAP Format 4
getGlyphData ( $originalGlyphIdx, &$maxdepth, &$depth, &$points, &$contours ) Recursively get composite glyph data
getGlyphs ( $originalGlyphIdx, &$start, &$glyphSet, &$subsetglyphs ) Recursively get composite glyphs
getHMTX ( $numberOfHMetrics, $numGlyphs, &$glyphToChar, $scale )
getHMetric ( $numberOfHMetrics, $gid )
getLOCA ( $indexToLocFormat, $numGlyphs )
getMetrics ( $file )
get_chunk ( $pos, $length )
get_table ( $tag )
get_table_pos ( $tag )
get_ulong ( $pos )
get_ushort ( $pos )
makeSubset ( $file, &$subset )
pack_short ( $val )
readTableDirectory ( )
read_short ( )
read_tag ( )
read_ulong ( )
read_ushort ( )
seek ( $pos )
seek_table ( $tag, $offset_in_table )
skip ( $delta )
splice ( $stream, $offset, $value )
sub32 ( $x, $y )
unpack_short ( $s )

Method Details

__construct() public method

public __construct ( )

_set_short() public method

public _set_short ( $stream, $offset, $val )

_set_ushort() public method

public _set_ushort ( $stream, $offset, $value )

add() public method

public add ( $tag, $data )

calcChecksum() public method

public calcChecksum ( $data )

endTTFile() public method

Put the TTF file together
public endTTFile ( &$stm )

extractInfo() public method

public extractInfo ( )

getCMAP4() public method

CMAP Format 4
public getCMAP4 ( $unicode_cmap_offset, &$glyphToChar, &$charToGlyph )

getGlyphData() public method

Recursively get composite glyph data
public getGlyphData ( $originalGlyphIdx, &$maxdepth, &$depth, &$points, &$contours )

getGlyphs() public method

Recursively get composite glyphs
public getGlyphs ( $originalGlyphIdx, &$start, &$glyphSet, &$subsetglyphs )

getHMTX() public method

public getHMTX ( $numberOfHMetrics, $numGlyphs, &$glyphToChar, $scale )

getHMetric() public method

public getHMetric ( $numberOfHMetrics, $gid )

getLOCA() public method

public getLOCA ( $indexToLocFormat, $numGlyphs )

getMetrics() public method

public getMetrics ( $file )

get_chunk() public method

public get_chunk ( $pos, $length )

get_table() public method

public get_table ( $tag )

get_table_pos() public method

public get_table_pos ( $tag )

get_ulong() public method

public get_ulong ( $pos )

get_ushort() public method

public get_ushort ( $pos )

makeSubset() public method

public makeSubset ( $file, &$subset )

pack_short() public method

public pack_short ( $val )

readTableDirectory() public method

public readTableDirectory ( )

read_short() public method

public read_short ( )

read_tag() public method

public read_tag ( )

read_ulong() public method

public read_ulong ( )

read_ushort() public method

public read_ushort ( )

seek() public method

public seek ( $pos )

seek_table() public method

public seek_table ( $tag, $offset_in_table )

skip() public method

public skip ( $delta )

splice() public method

public splice ( $stream, $offset, $value )

sub32() public method

public sub32 ( $x, $y )

unpack_short() public method

public unpack_short ( $s )

Property Details

$_pos public_oe property

public $_pos

$ascent public_oe property

public $ascent

$bbox public_oe property

public $bbox

$capHeight public_oe property

public $capHeight

$charToGlyph public_oe property

public $charToGlyph

$charWidths public_oe property

public $charWidths

$defaultWidth public_oe property

public $defaultWidth

$descent public_oe property

public $descent

$entrySelector public_oe property

public $entrySelector

$familyName public_oe property

public $familyName

$fh public_oe property

public $fh

$filename public_oe property

public $filename

$flags public_oe property

public $flags

$fullName public_oe property

public $fullName

$glyphPos public_oe property

public $glyphPos

$hmetrics public_oe property

public $hmetrics

$italicAngle public_oe property

public $italicAngle

$maxStrLenRead public_oe property

public $maxStrLenRead

$maxUni public_oe property

public $maxUni

$name public_oe property

public $name

$numTables public_oe property

public $numTables

$otables public_oe property

public $otables

$rangeShift public_oe property

public $rangeShift

$searchRange public_oe property

public $searchRange

$stemV public_oe property

public $stemV

$styleName public_oe property

public $styleName

$tables public_oe property

public $tables

$underlinePosition public_oe property

public $underlinePosition

$underlineThickness public_oe property

public $underlineThickness

$uniqueFontID public_oe property

public $uniqueFontID

$unitsPerEm public_oe property

public $unitsPerEm