diff --git a/src/FontLib/EOT/File.php b/src/FontLib/EOT/File.php index cd3fff6..4a00629 100644 --- a/src/FontLib/EOT/File.php +++ b/src/FontLib/EOT/File.php @@ -75,7 +75,7 @@ public function read($n) { $string = fread($this->f, $n); $chunks = mb_str_split($string, 2, '8bit'); - + $chunks = array_map("strrev", $chunks); return implode("", $chunks); } diff --git a/src/FontLib/Glyph/Outline.php b/src/FontLib/Glyph/Outline.php index f2b15d3..bb783d9 100644 --- a/src/FontLib/Glyph/Outline.php +++ b/src/FontLib/Glyph/Outline.php @@ -75,11 +75,7 @@ function __construct(glyf $table, $offset = null, $size = null) { function parse(BinaryStream $font) { $font->seek($this->offset); - if (!$this->size) { - return; - } - - $this->raw = $font->read($this->size); + $this->raw = $font->read($this->size); } function parseData() {