[as-devel] Re: Rotating text, and other funky text effects.
Sasha_Vasko@osca.state.mo.us
Thu, 22 Apr 1999 17:00:52 -0500
>On Thu, 22 Apr 1999 Sasha_Vasko@osca.state.mo.us wrote:
>> 3. We rotate this pixmap -90 degrees, if vertical text is desired.
>> We can do this only when text to be displayed changes, and then just store
>> this prepared Mask in some safe place.
>Step 3 isn't much fun with a 1bpp pixmap, but since we know the depth
>and it doesn't matter if it is XYPixmap or ZPixmap, it probably would be
>reasonably easy. Also, step 3 involves:
>3a. Convert Pixmap to XImage.
>3e. Copy rotated XImage to new Pixmap.
>Steps 3a and 3e are the ones that bother me, not 3c.
Yep, that would not be good for network traffic, but that would be used
only for rotated text - so ppl just can avoid this feature.
If X server and client runs on the same machine, this operations goes very fast,
I did timings.
><soapbox>
>net connection - I'd like to see it stay that way. Translucency is a
>notable exception, and I still have twinges of regret for implementing
>it...
></soapbox>
don't tell me
> b) Usage :
> 1.) We cut a piece of prepared pixmap of the size of titlebar, if it's smaller
>Even easier, set the GC clipping mask to our 1bpp text pixmap, set the
>clip origin appropriately, and use XFillRectangle to draw the text. No
>need for an extra pixmap at this stage.
you know better :)
>> All this operations are not very resource consuming, and I bielive that it
could
>> be even faster then regular DrawText, even thou it will eat up some memory.
>> So we could possibly utilize this approach for all other displaying
operations.
>
>Could be, although I'd rather not keep hundreds (or even tens) of pixmaps
>lying around - they're a logistical nightmare to keep up to date.
agree, althou I'm not sure how those Fore parameters could be imlemented
>To summarize, I still object to rotating text, on the basis that it
me is not a great fun of this idea too, as you might notice, just wanted to give
you something to chew on :)
>requires transferring the pixmap from X server to local client and back.
>I do think that using a pixmap to represent the text would be a good way
>of doing ForePixmap and ForeGradient.
That would be a good thing to implement IMHO.
>Ethan Fischer
Sasha