Skip to content

Commit dd448ad

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 dompdf#104
1 parent d6eb326 commit dd448ad

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
@@ -78,11 +78,7 @@ function __construct(glyf $table, $offset = null, $size = null) {
7878
function parse(BinaryStream $font) {
7979
$font->seek($this->offset);
8080

81-
if (!$this->size) {
82-
return;
83-
}
84-
85-
$this->raw = $font->read($this->size);
81+
$this->raw = $font->read($this->size);
8682
}
8783

8884
function parseData() {

0 commit comments

Comments
 (0)