mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
71d802bdb6
explicitly deals with GdkFont out into a new module, behind a polymorphic interface (done by ad-hoc explicit vtable management in C). This should allow me to drop in a Pango font handling module in parallel with the existing one, meaning that GTK2 PuTTY will be able to seamlessly switch between X11 server-side fonts and Pango client- side ones as the user chooses, or even use a mixture of the two (e.g. an X11 font for narrow characters and a Pango one for wide characters, or vice versa). In the process, incidentally, I got to the bottom of the `weird bug' mentioned in the old do_text_internal(). It's not a bug in gdk_draw_text_wc() as I had thought: it's simply that GdkWChar is a 32-bit type rather than a 16-bit one, so no wonder you have to specify twice the length to find all the characters in the string! However, there _is_ a bug in GTK2's gdk_draw_text_wc(), which causes it to strip off everything above the low byte of each GdkWChar, sigh. Solution to both problems is to use an array of the underlying Xlib type XChar2b instead, and pass it to gdk_draw_text() cast to gchar *. Grotty, but it works. (And it'll become significantly less grotty if and when we have to stop using the GDK font handling wrappers in favour of going direct to Xlib.) [originally from svn r7933] |
||
---|---|---|
.. | ||
configure.ac | ||
GTK2.TODO | ||
gtkcfg.c | ||
gtkcols.c | ||
gtkcols.h | ||
gtkdlg.c | ||
gtkfont.c | ||
gtkfont.h | ||
gtkwin.c | ||
unix.h | ||
ux_x11.c | ||
uxagentc.c | ||
uxcfg.c | ||
uxcons.c | ||
uxgen.c | ||
uxmisc.c | ||
uxnet.c | ||
uxnoise.c | ||
uxplink.c | ||
uxprint.c | ||
uxproxy.c | ||
uxpterm.c | ||
uxpty.c | ||
uxputty.c | ||
uxsel.c | ||
uxser.c | ||
uxsftp.c | ||
uxsignal.c | ||
uxstore.c | ||
uxucs.c | ||
xkeysym.c | ||
xpmptcfg.c | ||
xpmpterm.c | ||
xpmpucfg.c | ||
xpmputty.c |