Closed TakWolf closed 4 years ago
You mean the h_advance
?
A simple layout example similar to rusttype's example code is used for benchmarks: https://github.com/alexheretic/ab-glyph/blob/master/dev/src/layout.rs
There's also glyph_brush_layout for more advanced stuff.
If layout horizontal and from left to right:
advance_height = px_scale_font.ascent() - px_scale_font.descent(); // advance_width = ?
image ref from https://github.com/alexheretic/ab-glyph/issues/6