Fix test_render_glyph (but still leave it commented out for now)

This commit is contained in:
Antonio Scandurra 2021-03-25 15:10:21 +01:00
parent 0f6927eb4b
commit 4dc1b1e179

View file

@ -350,10 +350,11 @@ mod tests {
// let font_id = fonts.select_font(&font_ids, &Default::default()).unwrap();
// let glyph_id = fonts.glyph_for_char(font_id, 'G').unwrap();
// for i in 0..2 {
// let variant = 0.5 * i as f32;
// const VARIANTS: usize = 1;
// for i in 0..VARIANTS {
// let variant = i as f32 / VARIANTS as f32;
// let (bounds, bytes) = fonts
// .rasterize_glyph(font_id, 16.0, glyph_id, variant, 2.)
// .rasterize_glyph(font_id, 16.0, glyph_id, vec2f(variant, variant), 2.)
// .unwrap();
// let name = format!("/Users/as-cii/Desktop/twog-{}.png", i);