Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are there any plans to merge the "bitmap-glyphs" branch? #1167

Open
LaurenzV opened this issue Oct 1, 2024 · 2 comments
Open

Are there any plans to merge the "bitmap-glyphs" branch? #1167

LaurenzV opened this issue Oct 1, 2024 · 2 comments

Comments

@LaurenzV
Copy link
Contributor

LaurenzV commented Oct 1, 2024

Some time ago I noticed that there is a branch containing a skrifa API for bitmap glyphs (https://github.com/googlefonts/fontations/blob/skrifa-bitmaps/skrifa/src/bitmap.rs). From what I saw, right now the code is duplicated in vello, and I had to duplicate it for my crate as well, but apart from one minor fix I had to apply, it seems to work pretty nicely. :)

So I was wondering whether there are plans on actually integrating this into skrifa, or whether there is a reason this hasn't been done yet?

@LaurenzV LaurenzV changed the title Are there any plans to merge the "bitmap-glyphs" branch Are there any plans to merge the "bitmap-glyphs" branch? Oct 1, 2024
@LaurenzV
Copy link
Contributor Author

LaurenzV commented Oct 1, 2024

Also FYI, the fix I had to apply was changing

if glyph.graphic_type() != Tag::new(b"PNG ") {
    return None;
}

to

if glyph.graphic_type() != Tag::new(b"png ") {
    return None;
}

@dfrg
Copy link
Member

dfrg commented Oct 1, 2024

Thanks for the fix. I’d like to land this in skrifa but it hasn’t been a high priority because we already have equivalent functionality in Skia and, as you mentioned, we simply copied the code into vello. I’ll try to find some time in the next couple weeks to get it merged.

DJMcNab added a commit to DJMcNab/vello that referenced this issue Nov 22, 2024
See googlefonts/fontations#1167 (comment)

Co-Authored-By: Laurenz Stampfl <47084093+LaurenzV@users.noreply.github.com>
github-merge-queue bot pushed a commit to linebender/vello that referenced this issue Nov 22, 2024
See
googlefonts/fontations#1167 (comment)

Should make linebender/xilem#420 work.

Co-authored-by: Laurenz Stampfl <47084093+LaurenzV@users.noreply.github.com>
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

No branches or pull requests

2 participants