开发者

Generating labeled images for each glyph in a bitmap font file

开发者 https://www.devze.com 2022-12-21 07:26 出处:网络
Is there an easy way to generate a labeled bitmap image for each glyph contained in a given bitmap font file?

Is there an easy way to generate a labeled bitmap image for each glyph contained in a given bitmap font file?

I'm trying to convert a collection of Japanese .bdf fonts into a format usable in MATLAB and C++, where each glyph i开发者_Go百科s used as the OCR classification key for the character it represents.


FontForge has support for Bitmap Distribution Format (BDF) files. You can probably export a BMP files from there. I also found bdf2png. You can read up on the BDF specification and implement your own solution, which doesn't seem too bad as the format is in ASCII.

0

精彩评论

暂无评论...
验证码 换一张
取 消