noalyss Version-9
|
Public Member Functions | |
__construct () | |
_set_short ($stream, $offset, $val) | |
_set_ushort ($stream, $offset, $value) | |
add ($tag, $data) | |
calcChecksum ($data) | |
endTTFile (&$stm) | |
extractInfo () | |
get_chunk ($pos, $length) | |
get_table ($tag) | |
get_table_pos ($tag) | |
get_ulong ($pos) | |
get_ushort ($pos) | |
getCMAP4 ($unicode_cmap_offset, &$glyphToChar, &$charToGlyph) | |
getGlyphData ($originalGlyphIdx, &$maxdepth, &$depth, &$points, &$contours) | |
getGlyphs ($originalGlyphIdx, &$start, &$glyphSet, &$subsetglyphs) | |
getHMetric ($numberOfHMetrics, $gid) | |
getHMTX ($numberOfHMetrics, $numGlyphs, &$glyphToChar, $scale) | |
getLOCA ($indexToLocFormat, $numGlyphs) | |
getMetrics ($file) | |
makeSubset ($file, &$subset) | |
pack_short ($val) | |
read_short () | |
read_tag () | |
read_ulong () | |
read_ushort () | |
readTableDirectory () | |
seek ($pos) | |
seek_table ($tag, $offset_in_table=0) | |
skip ($delta) | |
splice ($stream, $offset, $value) | |
sub32 ($x, $y) | |
unpack_short ($s) | |
Definition at line 38 of file ttfonts.php.
TTFontFile::__construct | ( | ) |
Definition at line 72 of file ttfonts.php.
TTFontFile::_set_short | ( | $stream, | |
$offset, | |||
$val | |||
) |
TTFontFile::_set_ushort | ( | $stream, | |
$offset, | |||
$value | |||
) |
Definition at line 229 of file ttfonts.php.
References $offset, $up, $value, and splice().
Referenced by makeSubset().
TTFontFile::add | ( | $tag, | |
$data | |||
) |
Definition at line 257 of file ttfonts.php.
References $data, $tag, and splice().
Referenced by makeSubset().
TTFontFile::calcChecksum | ( | $data | ) |
Definition at line 132 of file ttfonts.php.
References $data, $hi, and $i.
Referenced by endTTFile().
TTFontFile::endTTFile | ( | & | $stm | ) |
Definition at line 1035 of file ttfonts.php.
References $chk, $data, $entrySelector, $numTables, $offset, $otables, $rangeShift, $searchRange, $tables, $tag, _TTF_MAC_HEADER, calcChecksum(), splice(), and sub32().
Referenced by makeSubset().
TTFontFile::extractInfo | ( | ) |
Definition at line 271 of file ttfonts.php.
References $_pos, $ascent, $charToGlyph, $i, $offset, $unitsPerEm, $version, get_chunk(), get_ushort(), getCMAP4(), getHMTX(), name, read_short(), read_ulong(), read_ushort(), seek(), seek_table(), and skip().
Referenced by getMetrics().
TTFontFile::get_chunk | ( | $pos, | |
$length | |||
) |
Definition at line 244 of file ttfonts.php.
References $pos.
Referenced by extractInfo(), getHMTX(), getLOCA(), and makeSubset().
TTFontFile::get_table | ( | $tag | ) |
Definition at line 250 of file ttfonts.php.
References $pos, $tag, and get_table_pos().
Referenced by makeSubset().
TTFontFile::get_table_pos | ( | $tag | ) |
Definition at line 146 of file ttfonts.php.
Referenced by get_table(), makeSubset(), and seek_table().
TTFontFile::get_ulong | ( | $pos | ) |
TTFontFile::get_ushort | ( | $pos | ) |
Definition at line 203 of file ttfonts.php.
Referenced by extractInfo(), getCMAP4(), and makeSubset().
TTFontFile::getCMAP4 | ( | $unicode_cmap_offset, | |
& | $glyphToChar, | ||
& | $charToGlyph | ||
) |
Definition at line 990 of file ttfonts.php.
References $_pos, $charToGlyph, $i, $limit, $offset, get_ushort(), read_short(), read_ushort(), seek(), and skip().
Referenced by extractInfo(), and makeSubset().
TTFontFile::getGlyphData | ( | $originalGlyphIdx, | |
& | $maxdepth, | ||
& | $depth, | ||
& | $points, | ||
& | $contours | ||
) |
Definition at line 832 of file ttfonts.php.
References getGlyphData().
Referenced by getGlyphData().
TTFontFile::getGlyphs | ( | $originalGlyphIdx, | |
& | $start, | ||
& | $glyphSet, | ||
& | $subsetglyphs | ||
) |
Definition at line 850 of file ttfonts.php.
References $flags, $glyphPos, $start, getGlyphs(), GF_MORE, GF_SCALE, GF_TWOBYTWO, GF_WORDS, GF_XYSCALE, read_short(), read_ushort(), seek(), and skip().
Referenced by getGlyphs(), and makeSubset().
TTFontFile::getHMetric | ( | $numberOfHMetrics, | |
$gid | |||
) |
Definition at line 952 of file ttfonts.php.
References $start, seek(), and seek_table().
Referenced by makeSubset().
TTFontFile::getHMTX | ( | $numberOfHMetrics, | |
$numGlyphs, | |||
& | $glyphToChar, | ||
$scale | |||
) |
Definition at line 887 of file ttfonts.php.
References $data, $diff, $pos, $start, $w, get_chunk(), read_ushort(), seek(), and seek_table().
Referenced by extractInfo(), and makeSubset().
TTFontFile::getLOCA | ( | $indexToLocFormat, | |
$numGlyphs | |||
) |
Definition at line 967 of file ttfonts.php.
References $data, $start, get_chunk(), and seek_table().
Referenced by makeSubset().
TTFontFile::getMetrics | ( | $file | ) |
Definition at line 77 of file ttfonts.php.
References $file, $version, extractInfo(), read_ulong(), and readTableDirectory().
TTFontFile::makeSubset | ( | $file, | |
& | $subset | ||
) |
Definition at line 494 of file ttfonts.php.
References $_pos, $charToGlyph, $code, $data, $entrySelector, $file, $flags, $glyphPos, $i, $offset, $pos, $prevcid, $range, $rangeid, $rangeShift, $searchRange, $start, $tag, $up, _set_ushort(), add(), endTTFile(), get_chunk(), get_table(), get_table_pos(), get_ushort(), getCMAP4(), getGlyphs(), getHMetric(), getHMTX(), getLOCA(), GF_MORE, GF_SCALE, GF_TWOBYTWO, GF_WORDS, GF_XYSCALE, read_ulong(), read_ushort(), readTableDirectory(), seek(), seek_table(), and skip().
TTFontFile::pack_short | ( | $val | ) |
TTFontFile::read_short | ( | ) |
Definition at line 174 of file ttfonts.php.
Referenced by extractInfo(), getCMAP4(), and getGlyphs().
TTFontFile::read_tag | ( | ) |
Definition at line 169 of file ttfonts.php.
Referenced by readTableDirectory().
TTFontFile::read_ulong | ( | ) |
Definition at line 196 of file ttfonts.php.
References $s.
Referenced by extractInfo(), getMetrics(), makeSubset(), and readTableDirectory().
TTFontFile::read_ushort | ( | ) |
Definition at line 190 of file ttfonts.php.
References $s.
Referenced by extractInfo(), getCMAP4(), getGlyphs(), getHMTX(), makeSubset(), and readTableDirectory().
TTFontFile::readTableDirectory | ( | ) |
Definition at line 102 of file ttfonts.php.
References $i, $numTables, read_tag(), read_ulong(), and read_ushort().
Referenced by getMetrics(), and makeSubset().
TTFontFile::seek | ( | $pos | ) |
Definition at line 152 of file ttfonts.php.
References $pos.
Referenced by extractInfo(), getCMAP4(), getGlyphs(), getHMetric(), getHMTX(), and makeSubset().
TTFontFile::seek_table | ( | $tag, | |
$offset_in_table = 0 |
|||
) |
Definition at line 162 of file ttfonts.php.
References $_pos, $tag, and get_table_pos().
Referenced by extractInfo(), getHMetric(), getHMTX(), getLOCA(), and makeSubset().
TTFontFile::skip | ( | $delta | ) |
Definition at line 157 of file ttfonts.php.
References $delta.
Referenced by extractInfo(), getCMAP4(), getGlyphs(), and makeSubset().
TTFontFile::splice | ( | $stream, | |
$offset, | |||
$value | |||
) |
Definition at line 225 of file ttfonts.php.
References $offset, and $value.
Referenced by _set_short(), _set_ushort(), add(), and endTTFile().
TTFontFile::sub32 | ( | $x, | |
$y | |||
) |
Definition at line 119 of file ttfonts.php.
Referenced by endTTFile().
TTFontFile::unpack_short | ( | $s | ) |
TTFontFile::$_pos |
Definition at line 41 of file ttfonts.php.
Referenced by extractInfo(), getCMAP4(), makeSubset(), and seek_table().
TTFontFile::$ascent |
Definition at line 53 of file ttfonts.php.
Referenced by extractInfo().
TTFontFile::$bbox |
Definition at line 61 of file ttfonts.php.
TTFontFile::$capHeight |
Definition at line 62 of file ttfonts.php.
TTFontFile::$charToGlyph |
Definition at line 52 of file ttfonts.php.
Referenced by extractInfo(), getCMAP4(), and makeSubset().
TTFontFile::$charWidths |
Definition at line 68 of file ttfonts.php.
TTFontFile::$defaultWidth |
Definition at line 69 of file ttfonts.php.
TTFontFile::$descent |
Definition at line 54 of file ttfonts.php.
TTFontFile::$entrySelector |
Definition at line 44 of file ttfonts.php.
Referenced by endTTFile(), and makeSubset().
TTFontFile::$familyName |
Definition at line 56 of file ttfonts.php.
TTFontFile::$fh |
Definition at line 49 of file ttfonts.php.
TTFontFile::$filename |
Definition at line 48 of file ttfonts.php.
TTFontFile::$flags |
Definition at line 65 of file ttfonts.php.
Referenced by getGlyphs(), and makeSubset().
TTFontFile::$fullName |
Definition at line 58 of file ttfonts.php.
TTFontFile::$glyphPos |
Definition at line 51 of file ttfonts.php.
Referenced by getGlyphs(), and makeSubset().
TTFontFile::$hmetrics |
Definition at line 50 of file ttfonts.php.
TTFontFile::$italicAngle |
Definition at line 64 of file ttfonts.php.
TTFontFile::$maxStrLenRead |
Definition at line 70 of file ttfonts.php.
TTFontFile::$maxUni |
Definition at line 40 of file ttfonts.php.
TTFontFile::$name |
Definition at line 55 of file ttfonts.php.
TTFontFile::$numTables |
Definition at line 42 of file ttfonts.php.
Referenced by endTTFile(), and readTableDirectory().
TTFontFile::$otables |
Definition at line 47 of file ttfonts.php.
Referenced by endTTFile().
TTFontFile::$rangeShift |
Definition at line 45 of file ttfonts.php.
Referenced by endTTFile(), and makeSubset().
TTFontFile::$searchRange |
Definition at line 43 of file ttfonts.php.
Referenced by endTTFile(), and makeSubset().
TTFontFile::$stemV |
Definition at line 63 of file ttfonts.php.
TTFontFile::$styleName |
Definition at line 57 of file ttfonts.php.
TTFontFile::$tables |
Definition at line 46 of file ttfonts.php.
Referenced by endTTFile().
TTFontFile::$underlinePosition |
Definition at line 66 of file ttfonts.php.
TTFontFile::$underlineThickness |
Definition at line 67 of file ttfonts.php.
TTFontFile::$uniqueFontID |
Definition at line 59 of file ttfonts.php.
TTFontFile::$unitsPerEm |
Definition at line 60 of file ttfonts.php.
Referenced by extractInfo().