alexheretic / ab-glyph

Rust API for loading, scaling, positioning and rasterizing OpenType font glyphs
Apache License 2.0
369 stars 23 forks source link

Are bitmap fonts supported? #59

Open mejo13 opened 2 years ago

mejo13 commented 2 years ago

When i try to use .otb fonts (terminus-font-4.49.1 or gohufont-2.1-otb) with the examples i get no errors and no output except that both ./ascii and ./image report width and height. so i'm unsure whether these fonts are supported by ab_glyph or not.

alexheretic commented 2 years ago

There is Font::glyph_raster_image which is fairly low-level. However, all the examples and my own usage use outlines. There is an issue to improve this (#36).