From dd448ad1ce34c63d09baccd05415e361300c35b4 Mon Sep 17 00:00:00 2001 From: Brian Sweeney Date: Fri, 17 Dec 2021 14:32:33 -0500 Subject: [PATCH] Read outlines even if the size is not set This populates the raw outline data, which prevents errors during font parsing. partially addresses #104 --- src/FontLib/Glyph/Outline.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/FontLib/Glyph/Outline.php b/src/FontLib/Glyph/Outline.php index 42ab337..639ff60 100644 --- a/src/FontLib/Glyph/Outline.php +++ b/src/FontLib/Glyph/Outline.php @@ -78,11 +78,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() {