[Image-SIG] Pil format fonts use...
Joerg Baumann
Joerg.Baumann@stud.informatik.uni-erlangen.de
Sun, 19 Mar 2000 00:32:03 +0100 (MET)
On Fri, 17 Mar 2000, Jack Jansen wrote:
> Just an idle thought: wouldn't it be better to invest some time in
> creating a renderer for a simple scalable font to use with PIL? Wasn't=20
> Type 42 designed to be easily parseable and executable even without a
> fullblown PostScript interpreter?
Type 42 was designed as "wrapper" around a TrueType font.
< adobe 5012.Type42_spec >
... the PostScript =AE Type 42 font format which can be used to download
TrueType (r) fonts to PostScript printers (or PostScript compatible
printers) that contain a TrueType rasterizer. This method
yields better print quality than can be achieved by converting a
TrueType font to a Type 1 or Type 3 font. =20
</adobe 5012.Type42_spec >
So you don't need a fullblown PostScript interpreter, but=20
Postscript-wrapper unpacking code and a fullblown TrueType interpreter.
There is the FreeType library, a GPLed TrueType Rasterizer
(http://www.freetype.org/), perhaps that would be worth looking at? But
I think it handles only native TrueType fonts.=20
=20
Regards,
joerg
Joerg Baumann joerg.baumann@stud.informatik.uni-erlangen.de
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ =20
Beware of bugs in the above code; I have only proved it correct,=20
not tried it.
Don Knuth=20
=20