Looking for converter from Windows Font to C data

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....

Reply to
Ivanna Pee
Loading thread data ...

Take a look at BitFontCreator from

formatting link

--
Rich Webb     Norfolk, VA
Reply to
Rich Webb

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

Reply to
Gene S. Berkowitz
Reply to
Brendan Gillatt

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.