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

HTML text is missing #198

Open
barabadzhi opened this issue Nov 15, 2024 · 2 comments
Open

HTML text is missing #198

barabadzhi opened this issue Nov 15, 2024 · 2 comments

Comments

@barabadzhi
Copy link
Contributor

The WASM demo linked in the repo as well as native lib loosing all text content from HTML.
The actual text seems OK, but shaped_words / glyphs come out empty.

@barabadzhi barabadzhi changed the title HTML text goes missing HTML text is missing Nov 15, 2024
@fschutt
Copy link
Owner

fschutt commented Nov 15, 2024

Yeah, this is an issue I'm debugging atm, it seems that allsorts::subset::subset(font, glyphs) reorders the glyph IDs so lookup_glyph(char as u32) fails. This should be fixed upstream however.

@fschutt
Copy link
Owner

fschutt commented Nov 15, 2024

The issue was that the subsetted font didn‘t contain some glyphs because I didn’t encode the WINDOWS_1252 codepage properly. Should be fixed tomorrow.

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