wgpu_glyph
wgpu_glyph copied to clipboard
Wrong Render Result for SourceHanSerif fonts
Hello I'm new to wgpu glyph, I have managed to run the hello example, but I got a bad result when I replace the font with SourceHanSerifCN-VF(.otf or .ttf)。
the result:

if this line is added(after build the section and before queue), the app will panic:
let bound = glyph_brush.glyph_bounds(section.clone());
// panic:
//thread 'main' panicked at 'Invalid glyph_hor_side_bearing', C:\Users\MY_USERNAME\.cargo\registry\src\github.com-1ecc6299db9ec823\ab_glyph-0.2.13\src\ttfp.rs:333:1
I don't known if it's an issue for wgpu_glyph, or ab_glyph, or other dependencies, so I create this issue. Any advice will be appreciated:rose:.
environment
Windows 10, intel 7700, Nvidia 1060, 32gb ram
how to reproduce:
font file is downloaded from adobe-fonts/source-han-serif