RE: high-level text drawing



Hi Olexiy:
        Attatch is the program I make for the test. 
        You may try it and will find what's wrong with this test
program.
        
        I run this program on a sun box and the Xserver is Exceed7.1.1.

Thanks.





-----Original Message-----
From: gtk-app-devel-list-admin gnome org
[mailto:gtk-app-devel-list-admin gnome org] On Behalf Of Olexiy
Avramchenko
Sent: Monday, December 29, 2003 9:58 AM
To: Tom Liu
Cc: 'Tim Müller'; 'Johannes Weißl'; gtk-app-devel-list gnome org
Subject: Re: high-level text drawing

Tom Liu wrote:

So many functions need to call to draw a string, it is very slow.
I tried with the directly Xdrawstring, the Pango is 600 times slower.
If there is no simpler way to do this, that will be too bad.
 

XDrawString draws bitmap fonts only, try to use Xft with 
scalable/antialiased fonts and you'll see the difference... If you have 
a  bottleneck in drawing text - use PangoX backend or just raw X lib 
calls (you'll a HUGE pain in mixing glyphs from different languages).
But 600 times you mentioned - are you kidding ? What hardware/X 
server/Xft/Xrender/fontconfig/freetype/Gtk/Pango/fonts are you using ? 
Some time ago when I was stuck on this I have 10-20 times on 
non-accelerated hardware.

    Olexiy

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Attachment: drawtxt.cpp
Description: Binary data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]