Re: Fast ascii rendering
- From: Olexiy Avramchenko <olexiy ctech cn ua>
- To: Zeeshan Ali <zeenix gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Fast ascii rendering
- Date: Thu, 23 Dec 2004 13:20:28 +0200
Zeeshan Ali wrote:
Hello,
Is there a way to do fast ascii rendering the gdk way, bypassing
the default internaionlized (slow) way of doing it? In this particular
app. i dont need internationalization but ascii output on a drawable
with a very high speed (at least 2000 chars in 1 millisecond).
Under X11 the fastest way is to use X calls (XDrawString, etc) and
bitmap fonts.
See:
http://developer.gnome.org/doc/API/2.0/gdk/gdk-X-Window-System-Interaction.html
http://developer.gnome.org/doc/API/2.0/gdk/gdk-X-Window-System-Interaction.html#GDK-DISPLAY:CAPS
http://developer.gnome.org/doc/API/2.0/gdk/gdk-X-Window-System-Interaction.html#GDK-GC-XGC:CAPS
http://developer.gnome.org/doc/API/2.0/gdk/gdk-X-Window-System-Interaction.html#GDK-DRAWABLE-XID:CAPS
XDrawString XLoadFont manual pages and XLFD document will also help.
PS: this is a bad advice if you want to write smth portable and supposed
to run on different platforms
Olexiy
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]