src/OtlDump.php
function getGlyphData($originalGlyphIdx, &$maxdepth, &$depth, &$points, &$contours)
	{
		$depth++;
		$maxdepth = max($maxdepth, $depth);
		if (count($this->glyphdata[$originalGlyphIdx]['compGlyphs'])) {
			foreach ($this->glyphdata[$originalGlyphIdx]['compGlyphs'] as $glyphIdx) {
				$this->getGlyphData($glyphIdx, $maxdepth, $depth, $points, $contours);
			}
		} else {
			if (($this->glyphdata[$originalGlyphIdx]['nContours'] > 0) && $depth > 0) { // simple
				$contours += $this->glyphdata[$originalGlyphIdx]['nContours'];
				$points += $this->glyphdata[$originalGlyphIdx]['nPoints'];
			}
		}
		$depth--;
	}
function getGlyphData($originalGlyphIdx, &$maxdepth, &$depth, &$points, &$contours)
	{
		$depth++;
		$maxdepth = max($maxdepth, $depth);
		if (count($this->glyphdata[$originalGlyphIdx]['compGlyphs'])) {
			foreach ($this->glyphdata[$originalGlyphIdx]['compGlyphs'] as $glyphIdx) {
				$this->getGlyphData($glyphIdx, $maxdepth, $depth, $points, $contours);
			}
		} else {
			if (($this->glyphdata[$originalGlyphIdx]['nContours'] > 0) && $depth > 0) { // simple
				$contours += $this->glyphdata[$originalGlyphIdx]['nContours'];
				$points += $this->glyphdata[$originalGlyphIdx]['nPoints'];
			}
		}
		$depth--;
	}
function getGlyphData ( $ originalGlyphIdx , & $ maxdepth , & $ depth , & $ points , & $ contours ) { $ depth ++ ; $ maxdepth = max ( $ maxdepth , $ depth ) ; if ( count ( $ this -> glyphdata [ $ originalGlyphIdx ] [ 'compGlyphs' ] ) ) { foreach ( $ this -> glyphdata [ $ originalGlyphIdx ] [ 'compGlyphs' ] as $ glyphIdx ) { $ this -> getGlyphData ( $ glyphIdx , $ maxdepth , $ depth , $ points , $ contours ) ; } } else { if ( ( $ this -> glyphdata [ $ originalGlyphIdx ] [ 'nContours' ] > 0 ) && $ depth > 0 ) { // simple $ contours += $ this -> glyphdata [ $ originalGlyphIdx ] [ 'nContours' ] ; $ points += $ this -> glyphdata [ $ originalGlyphIdx ] [ 'nPoints' ] ; } } $ depth -- ; }
Recursively get composite glyph data
Recursively get composite glyph data