Skip to content

[skrifa] Implement sbix dupe and flip#1631

Open
valadaptive wants to merge 1 commit intogooglefonts:mainfrom
valadaptive:sbix-dupe-flip
Open

[skrifa] Implement sbix dupe and flip#1631
valadaptive wants to merge 1 commit intogooglefonts:mainfrom
valadaptive:sbix-dupe-flip

Conversation

@valadaptive
Copy link
Contributor

Resolves #1137 (flip doesn't seem to be a bit, but instead its own graphic type that works like dupe).

The sbix dupe and flip graphic types reference other glyphs--the "image data" for these is actually just a 16-bit glyph ID. I chose to match FreeType here and bail after 4 indirections.

I've introduced another property on BitmapGlyph for whether the graphic should be flipped, but I've documented that it's only set for a few sbix fonts (should I be more specific and just name Apple Color Emoji?)

Not sure how to produce font data to test this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose information about flip bit in SBIX

1 participant