You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:.
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:
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:
SourceHanIssue.zip
font file is downloaded from adobe-fonts/source-han-serif
The text was updated successfully, but these errors were encountered: