Create tagged images for each glyph in a raster font file

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

I am trying to convert a set of Japanese .bdf fonts to a format that can be used in MATLAB and C ++, where each glyph is used as an OCR classification key for the character it represents.

+3
source share
1 answer

FontForge supports Bitmap Distribution Format (BDF) . Perhaps you can export BMP files. I also found bdf2png . You can read the BDF specification and implement your own solution, which does not seem too bad, since the format is in ASCII.

+1
source

Source: https://habr.com/ru/post/1734287/


All Articles