1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 09:58:01 +00:00
putty-source/unix
Simon Tatham 71d802bdb6 Refactor the font handling code: I've moved all the code that
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]
2008-03-22 11:40:23 +00:00
..
configure.ac AIX 5.1 has <utmpx.h> but no updwtmpx(). Treat the latter as a reason to 2005-09-14 11:00:34 +00:00
GTK2.TODO Better not forget to make sure GTK1 doesn't break. 2007-01-27 17:47:48 +00:00
gtkcfg.c Saw uxcfg.c in half down the middle, to separate out config changes 2005-02-14 07:41:41 +00:00
gtkcols.c Commit Colin Watson's original GTK2 patch, exactly as mailed to me 2007-01-25 19:33:29 +00:00
gtkcols.h First stab at a GTK layout engine. It's missing all sorts of stuff 2003-03-13 19:52:28 +00:00
gtkdlg.c Merge out from trunk, to keep this branch viable. We are now up to 2008-03-10 18:48:36 +00:00
gtkfont.c Refactor the font handling code: I've moved all the code that 2008-03-22 11:40:23 +00:00
gtkfont.h Refactor the font handling code: I've moved all the code that 2008-03-22 11:40:23 +00:00
gtkwin.c Refactor the font handling code: I've moved all the code that 2008-03-22 11:40:23 +00:00
unix.h Add support for resetting the terminal modes on stderr to something sensible 2007-09-29 12:27:45 +00:00
ux_x11.c X forwarding changes: 2004-10-06 22:31:07 +00:00
uxagentc.c Set FD_CLOEXEC in a little convenience function that does the right thing 2006-12-09 15:44:31 +00:00
uxcfg.c Inhibit the Serial configuration panel in mid-session if the session 2006-08-29 09:18:09 +00:00
uxcons.c Add support for resetting the terminal modes on stderr to something sensible 2007-09-29 12:27:45 +00:00
uxgen.c Added a command-line key generation tool. Currently builds and runs 2004-01-22 19:15:32 +00:00
uxmisc.c Don't use C99 mid-block declarations and don't do arithmetic on void *. 2007-01-20 14:13:57 +00:00
uxnet.c Aha, _that's_ why I've been periodically getting blocking-write 2008-02-21 09:18:24 +00:00
uxnoise.c Improve robustness in random seed file handling. 2002-11-07 20:01:04 +00:00
uxplink.c More fixes to stdout and stderr. When the backlog on either clears, call 2007-10-02 21:43:53 +00:00
uxprint.c Unix can't sensibly enumerate printers (since they're defined as 2003-04-05 16:12:52 +00:00
uxproxy.c Remove the loops that close all open fds before running a 2007-01-14 13:44:07 +00:00
uxpterm.c Since r7265, a user could not launch a PuTTY session to a specific host by 2007-02-25 00:50:24 +00:00
uxpty.c As far as I can see (at least in NetBSD) O_NONBLOCK and FIONBIO are equivalent, 2007-10-02 21:07:52 +00:00
uxputty.c Rationalise access to, and content of, backends[] array. 2007-06-30 21:56:44 +00:00
uxsel.c Changed my mind about r7164. Instead of checking for zero flags 2007-01-26 20:00:32 +00:00
uxser.c Implement Marcin Bulandra's suggestion of only automatically updating the 2007-07-01 15:47:31 +00:00
uxsftp.c Shifts left and right by 32 were tripping a gcc warning (fatal with 2006-08-15 20:29:02 +00:00
uxsignal.c Rename some of the more stupidly named files in the Unix back end. 2004-12-31 13:02:46 +00:00
uxstore.c The ANSI-C constant FILENAME_MAX is ludicrously small on some systems. 2005-09-13 20:08:25 +00:00
uxucs.c RJK's OS X portability patch: 2004-11-24 11:36:08 +00:00
xkeysym.c Support for non-ISO-8859-1 X keysyms. So in particular, pterm in a 2003-04-27 11:10:48 +00:00
xpmptcfg.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
xpmpterm.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
xpmpucfg.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
xpmputty.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00