The Cyber-Spy.Com Usenet Archive Feeds Directly
From The Open And Publicly Available Newsgroup
This Group And Thousands Of Others Are Available
On Most IS NNTP News Servers On Port 119.
Cyber-Spy.Com Is NOT Responsible For Any Topic,
Opinions Or Content Posted To This Or Any Other
Newsgroup. This Web Archive Of The Newsgroup And
Posts Are For Informational Purposes Only.
From: Geoff Steckel
Subject: Re: Windows/Unix Font converter for Graphics LCD and Thermal printer.
User-Agent: slrn/0.9.7.4 (OpenBSD)
NNTP-Posting-Date: Sun, 10 Nov 2002 14:42:02 GMT
Organization: AT&T Broadband
Date: Sun, 10 Nov 2002 14:42:02 GMT
In article ,
Luiz de Barros wrote:
> Dear ALL,
> I am looking for a FONT DOWNLOADER that can convert WINDOWS .FNT and
> TTF, Adobe Type 1 Fonts, Unix X11 Fonts to C code that can be used to
> generate C/ASM code for use with Graphics LCD displays and Thermal
> This will be used in an automation product.
> I want to load windows or unix fonts to LCD display and printer.
I'm not entirely sure what your requirements and platform(s) are.
It depends -very- much on the desired resolution, available
CPU and memory resources, etc.
I -strongly- recommend -against- "converting fonts to C code".
A data driven approach where the C code interprets tables
of font data is -much- more likely to result in a compact
and debuggable system.
Accurate scaling with pleasing outlines is a hard problem.
Case 1: you want high resolution and good rendering at
The most resource-hungry but quickest to implement might be
to license Ghostscript or one of the Web browsers that uses
a free TrueType rendering engine and a free Type 1 rendering engine.
This will take about 5 megabytes and a 32-bit processor.
There are freely available font rendering engines, but
they are optimized for good rendering not small size.
You would have to write code to drive them.
Case 2: you only need low to medium resolution at a few sizes:
Write a small shell script to run this:
Write a little postscript code to load desired
font files into Ghostscript to render needed characters
at needed sizes to a bitmap file.
Convert the bitmaps to C data files using Perl.
Feed the converted data files to your machine.
Write a tiny rendering engine for your micro which displays
these characters as needed.
You can compress the glyph data a lot if you look at
what other people have done.
Geoff Steckel, Owner firstname.lastname@example.org
Omnivore Technology +1 617 332 9252
127 Cornell St.
Newton, MA 02462
Go Back To The Cyber-Spy.Com
Usenet Web Archive Index Of
The sci.electronics.design Newsgroup