Skip to content

Commit

Permalink
Read outlines even if the size is not set
Browse files Browse the repository at this point in the history
This populates the raw outline data, which prevents errors during font parsing.

partially addresses #104
  • Loading branch information
bsweeney committed Dec 17, 2021
1 parent d6eb326 commit dd448ad
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/FontLib/Glyph/Outline.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit dd448ad

Please sign in to comment.