Lines Matching refs:g

17 // e.g. xMin, xMax, maxNContours
976 foreach ($GlyphByClass[1] as $g) {
977 $html .= '&#x' . $g . '; ';
992 foreach ($GlyphByClass[2] as $g) {
993 $html .= '&#x' . $g . '; ';
1008 foreach ($GlyphByClass[3] as $g) {
1009 $html .= '◌&#x' . $g . '; ';
1024 foreach ($GlyphByClass[4] as $g) {
1025 $html .= '&#x' . $g . '; ';
1086 foreach ($glyphs as $g) {
1087 $html .= '◌&#x' . $g . '; ';
1117 foreach ($glyphs as $g) {
1118 $html .= '◌&#x' . $g . '; ';
1286 foreach ($gsub as $st => $g) {
1288 foreach ($g as $l => $t) {
1454 for ($g = 0; $g < $GlyphCount; $g++) {
1471 for ($g = 0; $g < $Lookup[$i]['Subtable'][$c]['Sequences'][$s]['GlyphCount']; $g++) {
1488 for ($g = 0; $g < $Lookup[$i]['Subtable'][$c]['AlternateSets'][$s]['GlyphCount']; $g++) {
1504 for ($g = 0; $g < $Lookup[$i]['Subtable'][$c]['LigSet'][$s]['LigCount']; $g++) {
1505 $Lookup[$i]['Subtable'][$c]['LigSet'][$s]['LigatureOffset'][$g] = $Lookup[$i]['Subtable'][$c]['LigSet'][$s]['Offset'] + $this->read_ushort();
1509 for ($g = 0; $g < $Lookup[$i]['Subtable'][$c]['LigSet'][$s]['LigCount']; $g++) {
1511 $this->seek($Lookup[$i]['Subtable'][$c]['LigSet'][$s]['LigatureOffset'][$g]);
1512 $Lookup[$i]['Subtable'][$c]['LigSet'][$s]['Ligature'][$g]['LigGlyph'] = $this->read_ushort();
1513 $Lookup[$i]['Subtable'][$c]['LigSet'][$s]['Ligature'][$g]['CompCount'] = $this->read_ushort();
1514 for ($l = 1; $l < $Lookup[$i]['Subtable'][$c]['LigSet'][$s]['Ligature'][$g]['CompCount']; $l++) {
1515 $Lookup[$i]['Subtable'][$c]['LigSet'][$s]['Ligature'][$g]['GlyphID'][$l] = $this->read_ushort();
1533 for ($g = 0; $g < $Lookup[$i]['Subtable'][$c]['SubRuleSet'][$s]['SubRuleCount']; $g++) {
1534 $Lookup[$i]['Subtable'][$c]['SubRuleSet'][$s]['SubRuleOffset'][$g] = $Lookup[$i]['Subtable'][$c]['SubRuleSet'][$s]['Offset'] + $this->read_ushort();
1539 for ($g = 0; $g < $Lookup[$i]['Subtable'][$c]['SubRuleSet'][$s]['SubRuleCount']; $g++) {
1541 $this->seek($Lookup[$i]['Subtable'][$c]['SubRuleSet'][$s]['SubRuleOffset'][$g]);
1543 $Lookup[$i]['Subtable'][$c]['SubRuleSet'][$s]['SubRule'][$g]['GlyphCount'] = $this->read_ushort();
1544 $Lookup[$i]['Subtable'][$c]['SubRuleSet'][$s]['SubRule'][$g]['SubstCount'] = $this->read_ushort();
1546 for ($l = 1; $l < $Lookup[$i]['Subtable'][$c]['SubRuleSet'][$s]['SubRule'][$g]['GlyphCount']; $l++) {
1547 $Lookup[$i]['Subtable'][$c]['SubRuleSet'][$s]['SubRule'][$g]['Input'][$l] = $this->read_ushort();
1550 for ($l = 0; $l < $Lookup[$i]['Subtable'][$c]['SubRuleSet'][$s]['SubRule'][$g]['SubstCount']; $l++) {
1551 $Lookup[$i]['Subtable'][$c]['SubRuleSet'][$s]['SubRule'][$g]['SubstLookupRecord'][$l]['SequenceIndex'] = $this->read_ushort();
1552 $Lookup[$i]['Subtable'][$c]['SubRuleSet'][$s]['SubRule'][$g]['SubstLookupRecord'][$l]['LookupListIndex'] = $this->read_ushort();
1649 for ($g = 0; $g < count($glyphs); $g++) {
1652 $replace[] = unicode_hex($this->glyphToChar[$glyphs[$g]][0]);
1658 $substitute[] = unicode_hex($this->glyphToChar[($glyphs[$g] + $Lookup[$i]['Subtable'][$c]['DeltaGlyphID'])][0]);
1660 $substitute[] = unicode_hex($this->glyphToChar[($Lookup[$i]['Subtable'][$c]['Glyphs'][$g])][0]);
1669 for ($g = 0; $g < count($glyphs); $g++) {
1672 $replace[] = $glyphs[$g];
1677 if (!isset($Lookup[$i]['Subtable'][$c]['Sequences'][$g]['SubstituteGlyphID']) || count($Lookup[$i]['Subtable'][$c]['Sequences'][$g]['SubstituteGlyphID']) == 0) {
1680 foreach ($Lookup[$i]['Subtable'][$c]['Sequences'][$g]['SubstituteGlyphID'] as $sub) {
1690 for ($g = 0; $g < count($glyphs); $g++) {
1693 $replace[] = $glyphs[$g];
1699 for ($gl = 0; $gl < $Lookup[$i]['Subtable'][$c]['AlternateSets'][$g]['GlyphCount']; $gl++) {
1700 $gid = $Lookup[$i]['Subtable'][$c]['AlternateSets'][$g]['SubstituteGlyphID'][$gl];
1704 //$gid = $Lookup[$i]['Subtable'][$c]['AlternateSets'][$g]['SubstituteGlyphID'][0];
1720 for ($g = 0; $g < $Lookup[$i]['Subtable'][$c]['LigSet'][$s]['LigCount']; $g++) {
1728 for ($l = 1; $l < $Lookup[$i]['Subtable'][$c]['LigSet'][$s]['Ligature'][$g]['CompCount']; $l++) {
1729 $gid = $Lookup[$i]['Subtable'][$c]['LigSet'][$s]['Ligature'][$g]['GlyphID'][$l];
1737 $gid = $Lookup[$i]['Subtable'][$c]['LigSet'][$s]['Ligature'][$g]['LigGlyph'];
1739 $Lookup[$i]['Subtable'][$c]['subs'][] = ['Replace' => $replace, 'substitute' => $substitute, 'CompCount' => $Lookup[$i]['Subtable'][$c]['LigSet'][$s]['Ligature'][$g]['CompCount']];
1755 for ($g = 1; $g < $GlyphCount; $g++) {
1756 $glyphID = $Lookup[$i]['Subtable'][$c]['SubRuleSet'][$s]['SubRule'][$r]['Input'][$g];
1757 $Lookup[$i]['Subtable'][$c]['SubRuleSet'][$s]['SubRule'][$r]['InputGlyphs'][$g] = unicode_hex($this->glyphToChar[$glyphID][0]);
1838 for ($g = 0; $g < $BacktrackGlyphCount; $g++) {
1840 $Lookup[$i]['Subtable'][$c]['ChainSubRuleSet'][$s]['ChainSubRule'][$r]['BacktrackGlyphs'][$g] = unicode_hex($this->glyphToChar[$glyphID][0]);
1844 for ($g = 1; $g < $InputGlyphCount; $g++) {
1846 $Lookup[$i]['Subtable'][$c]['ChainSubRuleSet'][$s]['ChainSubRule'][$r]['InputGlyphs'][$g] = unicode_hex($this->glyphToChar[$glyphID][0]);
1850 for ($g = 0; $g < $LookaheadGlyphCount; $g++) {
1852 $Lookup[$i]['Subtable'][$c]['ChainSubRuleSet'][$s]['ChainSubRule'][$r]['LookaheadGlyphs'][$g] = unicode_hex($this->glyphToChar[$glyphID][0]);
1957 $tags = []; // corresponding array of feature tags e.g. 'ccmp'
2196 // Pass $inputGlyphs[$seqIndex] e.g. 00636|00645|00656
2282 // Pass $inputGlyphs[$seqIndex] e.g. 00636|00645|00656
2336 // Pass $inputGlyphs[$seqIndex] e.g. 00636|00645|00656
2439 // Pass $inputGlyphs[$seqIndex] e.g. 00636|00645|00656
2460 // $Lookup[$i]['Subtable'][$c]['InputClasses'][(class)] e.g. 02E6|02E7|02E8
2577 // Pass $inputGlyphs[$seqIndex] e.g. 00636|00645|00656
2661 // Pass $inputGlyphs[$seqIndex] e.g. 00636|00645|00656
2815 // Returns e.g. ¦(0612)¦(ignore) (0613)¦(ignore) (0614)¦
2838 // Returns e.g. ¦(0612)¦(ignore) (0613)¦(ignore) (0614)¦
2855 // Returns e.g. ¦(FEEB|FEEC)(ignore) ¦(FD12|FD13)(ignore) ¦
2858 // each item being e.g. E0AD|E0AF|F1FD
2870 // Returns e.g. ¦(ignore) (FD12|FD13)¦(ignore) (FEEB|FEEC)¦
2873 // each item being e.g. E0AD|E0AF|F1FD
2884 // Returns e.g. "REPL\${6}\${8}" or "\${1}\${2} \${3} REPL\${4}\${6}\${8} \${9}"
2945 $g = [];
2952 $g[] = unicode_hex($this->glyphToChar[$glyphID][0]);
2954 $g[] = $glyphID;
2967 $g[] = unicode_hex($this->glyphToChar[$glyphID][0]);
2969 $g[] = $glyphID;
2975 return $g;
2991 for ($g = $startGlyphID; $g <= $endGlyphID; $g++) {
2992 if ($this->glyphToChar[$g][0]) {
2993 $GlyphByClass[$class][] = unicode_hex($this->glyphToChar[$g][0]);
3004 for ($g = $startGlyphID; $g <= $endGlyphID; $g++) {
3005 if ($this->glyphToChar[$g][0]) {
3006 $GlyphByClass[$class][] = unicode_hex($this->glyphToChar[$g][0]);
3136 foreach ($gpos as $st => $g) {
3138 foreach ($g as $l => $t) {
3198 $tags = []; // corresponding array of feature tags e.g. 'ccmp'
3261 // LookupType 1: Single adjustment Adjust position of a single glyph (e.g. SmallCaps/Sups/Subs)
3275 for ($g = 0; $g < count($glyphs); $g++) {
3276 if ($level == 2 && strpos($lcoverage, $glyphs[$g]) === false) {
3281 $html .= '<span class="unicode">' . $this->formatUni($glyphs[$g]) . '&nbsp;</span> ';
3285 $html .= '<span class="unchanged">&nbsp;' . $this->formatEntity($glyphs[$g]) . '</span>';
3293 $html .= '<span class="changed" style="font-feature-settings:\'' . $tag . '\' 1;">&nbsp;' . $this->formatEntity($glyphs[$g]) . '</span>';
3326 for ($g = 0; $g < count($glyphs); $g++) {
3327 if ($level == 2 && strpos($lcoverage, $glyphs[$g]) === false) {
3330 $Value = $Values[$g];
3333 $html .= '<span class="unicode">' . $this->formatUni($glyphs[$g]) . '&nbsp;</span> ';
3337 $html .= '<span class="unchanged">&nbsp;' . $this->formatEntity($glyphs[$g]) . '</span>';
3345 $html .= '<span class="changed" style="font-feature-settings:\'' . $tag . '\' 1;">&nbsp;' . $this->formatEntity($glyphs[$g]) . '</span>';
3369 $html .= '<div class="lookuptype">LookupType 2: Pair adjustment e.g. Kerning [Format ' . $PosFormat . ']</div>';
3390 // Takes too long e.g. Calibri font - just list kerning pairs with this:
3403 // If RTL pairs, GPOS declares a XPlacement e.g. -180 for an XAdvance of -180 to take
3410 // If RTL pairs, GPOS declares a XPlacement e.g. -180 for an XAdvance of -180 to take
3467 // If RTL pairs, GPOS declares a XPlacement e.g. -180 for an XAdvance of -180
3898 // Pass $inputGlyphs[$seqIndex] e.g. 00636|00645|00656
4100 // although should be unsigned value - comes out as e.g. 65108 (intended -50)