To generate some nicer aa fonts for Plucker (and PalmBible+), I need to be
able to make PalmFontConv use TrueType hinting data.  Anyway, for patent
reasons, the version of the FreeType 2 lib that I use has TT hinting
instructions disabled.  Unless Apple writes back to me about licensing the
patents for PalmFontConv (unlikely), the one solution I can think of is
this:

I would like a command-line program that generates bitmaps with the
Windows font renderer and saves them to a text-readable file.  It can be
very basic: Take a font name as argv[1] (ideally, a font filename), a font
size as argv[2], and (unless you can't toggle this by software) and
argv[3] will specify whether to do anti-aliasing, and then spit out glyphs
U0 to U255 to stdout in an easy-to-process text format (e.g., representing
the gray-scale level of each pixel by a hex number from 0 to F), and also
dumping basic metrics (advance width, left kerning, ascender/descender
height).  I just don't know enough about Windows programming to know how
to select a font, draw a glyph (to screen or to an internal
buffer--whichever is easier) and then capture the pixels.  And I don't
want to learn Windows programming.  It would be a pretty trivial program
to write if I were writing it for a Palm or a Sharp Wizard or...  Nothing
fancy.  I wouldn't be surprised if this was just 20-30 lines of code.  I
can tweak the code myself as needed to specify encodings, etc.

While this would only run on Windows, the font bitmaps generated by it
could be used by everybody.

Alex

--
Dr. Alexander R. Pruss  || e-mail: [EMAIL PROTECTED]
Philosophy Department   || online papers and home page:
Georgetown University   ||  www.georgetown.edu/faculty/ap85
Washington, DC 20057    ||
U.S.A.                  ||
-----------------------------------------------------------------------------
   "Philosophiam discimus non ut tantum sciamus, sed ut boni efficiamur."
       - Paul of Worczyn (1424)

_______________________________________________
plucker-dev mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-dev

Reply via email to