nanogui: Rotated fonts on microwindows?
Subject:
Re: [nanogui] Rotated fonts on microwindows?
From:
Steven Scholz ####@####.####
Date:
22 Aug 2004 10:15:12 +0100
Message-Id: <41286418.6000703@imc-berlin.de>
Greg,
> After looking at this, I think the problem is in NXLIB's
> support for 1bpp pixmaps, especially using the XGetSubImage
> and XPutImage functions. The FLTK code allocates
> a 1bpp pixmap and draws the font onto it, then reads
> areas and rotates the bits, writes it again, and then uses
> that to output the text...
>
> It's kind of a complicated discussion, but I would like to
> have Microwindows support 1bpp offscreen bitmaps directly,
> which it doesn't now. (It only supports "hardware" bitmaps,
> which in your case is 16bpp, the format of the actual screen
> data). So the conversion for now has to be done in NXLIB,
> to convert between 16bpp GrReadArea calls from Microwindows'
> bitmaps of the font data, to 1bpp for the XGetSubImage, and then
> reverse conversion when writing... A real pain. (Xlib however
> does this for every image format, one of the reasons that X is
> so large... this code could be used, but it's big and hairy)
I have to admit that I don't (yet) understand all these internals.
But does that mean that I won't be able to have rotated fonts with microwindows?
I realy need them as I want to put text on some diagrams...
--
Steven