* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
* @version $Id$
*/
?>
getData("cmap", "subtables") as $_subtable) {
if ($_subtable["platformID"] == 3 && $_subtable["platformSpecificID"] == 1) {
$subtable = $_subtable;
break;
}
}
$empty = 0;
$names = $font->getData("post", "names");
for($c = 0; $c <= 0xFFFF; $c++) {
if (($c % 256 == 0 || $c == 0xFFFF) && $empty > 0) {
echo "
";
$empty = 0;
}
if (isset($subtable["glyphIndexArray"][$c])) {
$g = $subtable["glyphIndexArray"][$c];
if ($empty > 0) {
echo "
";
$empty = 0;
}
echo "
$c;
$c
".(isset($names[$g]) ? $names[$g] : sprintf("uni%04x", $c))."
";
}
else {
$empty++;
}
} ?>
parse();
//$font->saveAdobeFontMetrics("$fontfile.ufm");
$records = $font->getData("name", "records");
?>