printpdf icon indicating copy to clipboard operation
printpdf copied to clipboard

HTML text is missing

Open barabadzhi opened this issue 1 year ago • 3 comments

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 avatar Nov 15 '24 13:11 barabadzhi

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 avatar Nov 15 '24 19:11 fschutt

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.

fschutt avatar Nov 15 '24 22:11 fschutt

The subsetting actually works now, but the HTML rendering is pretty broken, both on WASM and on native.

I had other things to do so this will have to wait for 0.9.

fschutt avatar Mar 19 '25 10:03 fschutt

This is now properly done on master, issue can be closed. HTML layout works as far as I tested it.

fschutt avatar Nov 24 '25 13:11 fschutt