Skip to content

Commit

Permalink
Temporarily ignore flip graphic type
Browse files Browse the repository at this point in the history
  • Loading branch information
meyer committed Nov 11, 2024
1 parent 37f418d commit 948ce7d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/TrueTypeFont.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,13 @@ export class TrueTypeFont {
const offset = this.tableOffsetsByTag.sbix + strikeOffset.offset + currentGlyphOffset;

const graphicType = await bp.tag(offset + 4);
invariant(graphicType === 'png ', 'Not a PNG!');

const data = await bp.readBytes(size - 8, offset + 8);
if (graphicType === "flip") {
console.error('TODO: add flip support');
continue;
}

invariant(graphicType === 'png ', 'Expected `png `, received `%s`', graphicType);

yield { data, name };
}
Expand Down

0 comments on commit 948ce7d

Please sign in to comment.