On Mon, May 24, 2004 at 12:08:17PM -0400, Alexander R. Pruss wrote:
>
> 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
^^^^^
please make it up to U+FFFF, you can decide later if you use all
the glyphs or just the first 256
> 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.
Only if you run it in USA, I am afraid. Bitmaps cannot be licensed in
USA, but it is quite possible the can be in other countries. OTOH,
you can probably use FreeType with hinting enabled in countries where
software cannot be patented (e.g. EU, but not for long)
IANAL
--
-----------------------------------------------------------
| Radovan Garab�k http://melkor.dnp.fmph.uniba.sk/~garabik/ |
| __..--^^^--..__ garabik @ melkor.dnp.fmph.uniba.sk |
-----------------------------------------------------------
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
_______________________________________________
plucker-dev mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-dev