开发者

Generating labeled images for each glyph in a 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜