Skip to content

Commit c4946e7

Browse files
committed
Read outlines even if the size is not set
This populates the raw outline data, which prevents errors during font parsing. partially addresses #104
1 parent b82d702 commit c4946e7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/FontLib/Glyph/Outline.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,7 @@ function __construct(glyf $table, $offset = null, $size = null) {
7575
function parse(BinaryStream $font) {
7676
$font->seek($this->offset);
7777

78-
if (!$this->size) {
79-
return;
80-
}
81-
82-
$this->raw = $font->read($this->size);
78+
$this->raw = $font->read($this->size);
8379
}
8480

8581
function parseData() {

0 commit comments

Comments
 (0)