I'm working on a project to convert OTF/TTF fonts to an older bitmap format. I'm currently using rusttype for rasterization, and it works fine for converting vector fonts to black and white bitmaps.
However, some TTF files have embedded bitmap strikes for certain font sizes, and I would prefer to render these rather than try to rasterize vectors without anti-aliasing. The ttf_parser crate provides only partial support for the relevant tables, and I can't find any Rust font rendering libraries that will render them. Maybe I'm looking in the wrong place? If there isn't a good library yet for this task, would people find one useful?
Hello!
To render embedded bitmap strikes from TTF fonts in Rust, you can use the ttf_parser crate to extract bitmap data from TTF files, though it may require some modifications for full support. Once you have the bitmap data, the image crate can help with converting it to a usable format. If existing libraries don't meet your needs, consider contributing to them or creating a new library to handle bitmap strikes specifically. Engaging with the Rust community can also provide support and insights.