Documentation

TTFontFile
in package
uses Strict

TTFontFile class

This class is based on The ReportLab Open Source PDF library written in Python - http://www.reportlab.com/software/opensource/ together with ideas from the OpenOffice source code and others. This header must be retained in any redistribution or modification of the file.

Tags
author

Ian Back ianb@bpm1.com

license

LGPL

Table of Contents

Properties

$_pos  : mixed
$advanceWidthMax  : mixed
$ascent  : mixed
$bbox  : mixed
$capHeight  : mixed
$charToGlyph  : mixed
$charWidths  : mixed
$codeToGlyph  : mixed
$defaultWidth  : mixed
$descent  : mixed
$entrySelector  : mixed
$familyName  : mixed
$fh  : mixed
$filename  : mixed
$flags  : mixed
$fontkey  : mixed
$fontRevision  : mixed
$fullName  : mixed
$GlyphClassBases  : mixed
$GlyphClassComponents  : mixed
$GlyphClassLigatures  : mixed
$GlyphClassMarks  : mixed
$glyphdata  : mixed
$glyphIDtoUni  : mixed
$glyphPos  : mixed
$glyphToChar  : mixed
$GPOSFeatures  : mixed
$GPOSLookups  : mixed
$GPOSScriptLang  : mixed
$GSLuCoverage  : mixed
$GSUBFeatures  : mixed
$GSUBLookups  : mixed
$GSUBScriptLang  : mixed
$haskernGPOS  : mixed
$hassmallcapsGSUB  : mixed
$hheaascent  : mixed
$hheadescent  : mixed
$hhealineGap  : mixed
$italicAngle  : mixed
$kerninfo  : mixed
$lineGap  : mixed
$LuCoverage  : mixed
$MarkAttachmentType  : mixed
$MarkGlyphSets  : mixed
$maxStrLenRead  : mixed
$maxUni  : mixed
$maxUniChar  : mixed
$name  : mixed
$numTables  : mixed
$numTTCFonts  : mixed
$otables  : mixed
$panose  : mixed
$rangeShift  : mixed
$restrictedUse  : mixed
$rtlPUAstr  : mixed
$searchRange  : mixed
$sFamilyClass  : mixed
$sFamilySubClass  : mixed
$sipset  : mixed
$smpset  : mixed
$stemV  : mixed
$strikeoutPosition  : mixed
$strikeoutSize  : mixed
$styleName  : mixed
$tables  : mixed
$TTCFonts  : mixed
$typoAscender  : mixed
$typoDescender  : mixed
$typoLineGap  : mixed
$underlinePosition  : mixed
$underlineThickness  : mixed
$uniqueFontID  : mixed
$unitsPerEm  : mixed
$useOTL  : mixed
$usWinAscent  : mixed
$usWinDescent  : mixed
$version  : mixed
$xHeight  : mixed
$fontCache  : mixed
$fontDescriptor  : mixed

Methods

__call()  : mixed
__callStatic()  : mixed
__construct()  : mixed
__get()  : mixed
__isset()  : mixed
__set()  : mixed
__unset()  : mixed
_checkGSUBignore()  : mixed
_getClassDefinitionTable()  : mixed
_getClasses()  : mixed
_getCoverage()  : mixed
_getGDEFtables()  : mixed
_getGPOStables()  : mixed
_getGSUBarray()  : mixed
_getGSUBignoreString()  : mixed
_getGSUBtables()  : mixed
GSUB - Glyph Substitution
_makeGSUBbacktrackMatch()  : mixed
_makeGSUBcontextInputMatch()  : mixed
_makeGSUBinputMatch()  : mixed
_makeGSUBinputReplacement()  : mixed
_makeGSUBlookaheadMatch()  : mixed
_set_short()  : mixed
_set_ushort()  : mixed
add()  : mixed
calcChecksum()  : mixed
checksumTables()  : mixed
endTTFile()  : mixed
extractInfo()  : mixed
get_chunk()  : mixed
get_table()  : mixed
get_table_pos()  : mixed
get_ulong()  : mixed
get_ushort()  : mixed
getCMAP4()  : mixed
CMAP Format 4
getCTG()  : mixed
getGlyphData()  : mixed
getGlyphs()  : mixed
getHMetric()  : mixed
getHMTX()  : mixed
getLOCA()  : mixed
getMetrics()  : mixed
getTTCFonts()  : mixed
makeSubset()  : mixed
makeSubsetSIP()  : mixed
pack_short()  : mixed
read_short()  : mixed
read_tag()  : mixed
read_ulong()  : mixed
read_ushort()  : mixed
readTableDirectory()  : mixed
repackageTTF()  : mixed
seek()  : mixed
seek_table()  : mixed
skip()  : mixed
splice()  : mixed
sub32()  : mixed
unpack_short()  : mixed

Properties

$GlyphClassComponents

public mixed $GlyphClassComponents

$GlyphClassLigatures

public mixed $GlyphClassLigatures

$hassmallcapsGSUB

public mixed $hassmallcapsGSUB

$MarkAttachmentType

public mixed $MarkAttachmentType

$strikeoutPosition

public mixed $strikeoutPosition

$underlinePosition

public mixed $underlinePosition

$underlineThickness

public mixed $underlineThickness

Methods

__call()

public __call(string $name, array<string|int, mixed> $args) : mixed
Parameters
$name : string

method name

$args : array<string|int, mixed>

arguments

__callStatic()

public static __callStatic(string $name, array<string|int, mixed> $args) : mixed
Parameters
$name : string

lowercase method name

$args : array<string|int, mixed>

arguments

__construct()

public __construct(FontCache $fontCache, mixed $fontDescriptor) : mixed
Parameters
$fontCache : FontCache
$fontDescriptor : mixed

__get()

public & __get(string $name) : mixed
Parameters
$name : string

property name

__isset()

public __isset(string $name) : mixed
Parameters
$name : string

property name

Tags
throws
StrictObjects

__set()

public __set(string $name, mixed $value) : mixed
Parameters
$name : string

property name

$value : mixed

property value

__unset()

public __unset(string $name) : mixed
Parameters
$name : string

property name

Tags
throws
StrictObjects

_checkGSUBignore()

public _checkGSUBignore(mixed $flag, mixed $glyph, mixed $MarkFilteringSet) : mixed
Parameters
$flag : mixed
$glyph : mixed
$MarkFilteringSet : mixed

_getClassDefinitionTable()

public _getClassDefinitionTable() : mixed

_getClasses()

public _getClasses(mixed $offset) : mixed
Parameters
$offset : mixed

_getCoverage()

public _getCoverage([mixed $convert2hex = true ][, mixed $mode = 1 ]) : mixed
Parameters
$convert2hex : mixed = true
$mode : mixed = 1

_getGDEFtables()

public _getGDEFtables() : mixed

_getGPOStables()

public _getGPOStables() : mixed

_getGSUBarray()

public _getGSUBarray(mixed &$Lookup, mixed &$lul, mixed $scripttag) : mixed
Parameters
$Lookup : mixed
$lul : mixed
$scripttag : mixed

_getGSUBignoreString()

public _getGSUBignoreString(mixed $flag, mixed $MarkFilteringSet) : mixed
Parameters
$flag : mixed
$MarkFilteringSet : mixed

_getGSUBtables()

GSUB - Glyph Substitution

public _getGSUBtables() : mixed

_makeGSUBbacktrackMatch()

public _makeGSUBbacktrackMatch(mixed $backtrackGlyphs, mixed $ignore) : mixed
Parameters
$backtrackGlyphs : mixed
$ignore : mixed

_makeGSUBcontextInputMatch()

public _makeGSUBcontextInputMatch(mixed $inputGlyphs, mixed $ignore, mixed $lookupGlyphs, mixed $seqIndex) : mixed
Parameters
$inputGlyphs : mixed
$ignore : mixed
$lookupGlyphs : mixed
$seqIndex : mixed

_makeGSUBinputMatch()

public _makeGSUBinputMatch(mixed $inputGlyphs, mixed $ignore) : mixed
Parameters
$inputGlyphs : mixed
$ignore : mixed

_makeGSUBinputReplacement()

public _makeGSUBinputReplacement(mixed $nInput, mixed $REPL, mixed $ignore, mixed $nBsubs, mixed $mLen, mixed $seqIndex) : mixed
Parameters
$nInput : mixed
$REPL : mixed
$ignore : mixed
$nBsubs : mixed
$mLen : mixed
$seqIndex : mixed

_makeGSUBlookaheadMatch()

public _makeGSUBlookaheadMatch(mixed $lookaheadGlyphs, mixed $ignore) : mixed
Parameters
$lookaheadGlyphs : mixed
$ignore : mixed

_set_short()

public _set_short(mixed $stream, mixed $offset, mixed $val) : mixed
Parameters
$stream : mixed
$offset : mixed
$val : mixed

_set_ushort()

public _set_ushort(mixed $stream, mixed $offset, mixed $value) : mixed
Parameters
$stream : mixed
$offset : mixed
$value : mixed

add()

public add(mixed $tag, mixed $data) : mixed
Parameters
$tag : mixed
$data : mixed

calcChecksum()

public calcChecksum(mixed $data) : mixed
Parameters
$data : mixed

checksumTables()

public checksumTables() : mixed

endTTFile()

public endTTFile(mixed &$stm) : mixed
Parameters
$stm : mixed

extractInfo()

public extractInfo([mixed $debug = false ][, mixed $BMPonly = false ][, mixed $useOTL = 0 ]) : mixed
Parameters
$debug : mixed = false
$BMPonly : mixed = false
$useOTL : mixed = 0

get_chunk()

public get_chunk(mixed $pos, mixed $length) : mixed
Parameters
$pos : mixed
$length : mixed

get_table()

public get_table(mixed $tag) : mixed
Parameters
$tag : mixed

get_table_pos()

public get_table_pos(mixed $tag) : mixed
Parameters
$tag : mixed

get_ulong()

public get_ulong(mixed $pos) : mixed
Parameters
$pos : mixed

get_ushort()

public get_ushort(mixed $pos) : mixed
Parameters
$pos : mixed

getCMAP4()

CMAP Format 4

public getCMAP4(mixed $unicode_cmap_offset, mixed &$glyphToChar, mixed &$charToGlyph) : mixed
Parameters
$unicode_cmap_offset : mixed
$glyphToChar : mixed
$charToGlyph : mixed

getCTG()

public getCTG(mixed $file[, mixed $TTCfontID = 0 ][, mixed $debug = false ][, mixed $useOTL = false ]) : mixed
Parameters
$file : mixed
$TTCfontID : mixed = 0
$debug : mixed = false
$useOTL : mixed = false

getGlyphData()

public getGlyphData(mixed $originalGlyphIdx, mixed &$maxdepth, mixed &$depth, mixed &$points, mixed &$contours) : mixed
Parameters
$originalGlyphIdx : mixed
$maxdepth : mixed
$depth : mixed
$points : mixed
$contours : mixed

getGlyphs()

public getGlyphs(mixed $originalGlyphIdx, mixed &$start, mixed &$glyphSet, mixed &$subsetglyphs) : mixed
Parameters
$originalGlyphIdx : mixed
$start : mixed
$glyphSet : mixed
$subsetglyphs : mixed

getHMetric()

public getHMetric(mixed $numberOfHMetrics, mixed $gid) : mixed
Parameters
$numberOfHMetrics : mixed
$gid : mixed

getHMTX()

public getHMTX(mixed $numberOfHMetrics, mixed $numGlyphs, mixed &$glyphToChar, mixed $scale) : mixed
Parameters
$numberOfHMetrics : mixed
$numGlyphs : mixed
$glyphToChar : mixed
$scale : mixed

getLOCA()

public getLOCA(mixed $indexToLocFormat, mixed $numGlyphs) : mixed
Parameters
$indexToLocFormat : mixed
$numGlyphs : mixed

getMetrics()

public getMetrics(mixed $file, mixed $fontkey[, mixed $TTCfontID = 0 ][, mixed $debug = false ][, mixed $BMPonly = false ][, mixed $useOTL = 0 ]) : mixed
Parameters
$file : mixed
$fontkey : mixed
$TTCfontID : mixed = 0
$debug : mixed = false
$BMPonly : mixed = false
$useOTL : mixed = 0

getTTCFonts()

public getTTCFonts(mixed $file) : mixed
Parameters
$file : mixed

makeSubset()

public makeSubset(mixed $file, mixed &$subset[, mixed $TTCfontID = 0 ][, mixed $debug = false ][, mixed $useOTL = false ]) : mixed
Parameters
$file : mixed
$subset : mixed
$TTCfontID : mixed = 0
$debug : mixed = false
$useOTL : mixed = false

makeSubsetSIP()

public makeSubsetSIP(mixed $file, mixed &$subset[, mixed $TTCfontID = 0 ][, mixed $debug = false ][, mixed $useOTL = 0 ]) : mixed
Parameters
$file : mixed
$subset : mixed
$TTCfontID : mixed = 0
$debug : mixed = false
$useOTL : mixed = 0

pack_short()

public pack_short(mixed $val) : mixed
Parameters
$val : mixed

readTableDirectory()

public readTableDirectory([mixed $debug = false ]) : mixed
Parameters
$debug : mixed = false

repackageTTF()

public repackageTTF(mixed $file[, mixed $TTCfontID = 0 ][, mixed $debug = false ][, mixed $useOTL = false ]) : mixed
Parameters
$file : mixed
$TTCfontID : mixed = 0
$debug : mixed = false
$useOTL : mixed = false

seek()

public seek(mixed $pos) : mixed
Parameters
$pos : mixed

seek_table()

public seek_table(mixed $tag[, mixed $offset_in_table = 0 ]) : mixed
Parameters
$tag : mixed
$offset_in_table : mixed = 0

skip()

public skip(mixed $delta) : mixed
Parameters
$delta : mixed

splice()

public splice(mixed $stream, mixed $offset, mixed $value) : mixed
Parameters
$stream : mixed
$offset : mixed
$value : mixed

sub32()

public sub32(mixed $x, mixed $y) : mixed
Parameters
$x : mixed
$y : mixed

unpack_short()

public unpack_short(mixed $s) : mixed
Parameters
$s : mixed

        
On this page

Search results