Font rendering libraries that render embedded bitmaps

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.

... posting AI-generated content is not allowed under the ToS.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.