Skip to content

Commit 448b152

Browse files
author
Indrek Altpere
committed
Use the multi-read helper
1 parent a5c4d40 commit 448b152

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/FontLib/Table/Type/post.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ protected function _parse() {
4242
case 2:
4343
$data["numberOfGlyphs"] = $font->readUInt16();
4444

45-
$glyphNameIndex = array();
46-
for ($i = 0; $i < $data["numberOfGlyphs"]; $i++) {
47-
$glyphNameIndex[] = $font->readUInt16();
48-
}
45+
$glyphNameIndex = $font->readUInt16Many($data["numberOfGlyphs"]);
4946

5047
$data["glyphNameIndex"] = $glyphNameIndex;
5148

0 commit comments

Comments
 (0)