Skip to content

Commit afd42c6

Browse files
committed
Fix UInt32 LE read
1 parent f0d29b9 commit afd42c6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

classes/font_eot.cls.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ public function read($n) {
5555
return implode("", $chunks);
5656
}
5757

58+
public function readUInt32(){
59+
$uint32 = parent::readUInt32();
60+
return $uint32 >> 16 & 0x0000FFFF | $uint32 << 16 & 0xFFFF0000;
61+
}
62+
5863
/**
5964
* Get font copyright
6065
*

0 commit comments

Comments
 (0)