Looking for converter from Windows Font to C data

Dec 27, 2007 3 Replies

Just like the topic says. Micrium has one, bundled with their GUI package, I just want a stand alone. Something that will output simple 1 bit per pixel data for printable Windows font characters. Output something like



/* ASCII Table: each character is 16 column (16dots large) and 24 raw (24 dots high) */ uc16 ASCII_Table[] = { /* Space ' ' */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,



0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, /* '!' */ 0x0000, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180,
0x0180, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, 0x0180, 0x0000,
0x0000, 0x0180, 0x0180, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, /* '"' */ 0x0000, 0x0000, 0x00CC, 0x00CC, 0x00CC, 0x00CC, 0x00CC,
0x00CC, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000,


Anyone know of something available like this....


Take a look at BitFontCreator from

formatting link

Rich Webb Norfolk, VA

Metagraphics FontBuilder:

formatting link

It allows you to convert a TrueType font to a bitmap, at any dot pitch, and preserves the character widths. The output is a C header file. You will need to write a rendering routine that understands the (well documented) Metagraphics font format, but it's not hard. And, it understands unicode.

--Gene

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required