Skip to content

Commit b5737cf

Browse files
committed
Set post table glyph name only when defined
fixes #63
1 parent 457a840 commit b5737cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/FontLib/Table/Type/post.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ protected function _parse() {
5757
$names[$g] = File::$macCharNames[$index];
5858
}
5959
else {
60-
$names[$g] = $namesPascal[$index - 258];
60+
if (array_key_exists($index - 258, $namesPascal)) {
61+
$names[$g] = $namesPascal[$index - 258];
62+
}
6163
}
6264
}
6365

0 commit comments

Comments
 (0)