]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Work around Pango fonts with fractional width.
authorSimon Tatham <anakin@pobox.com>
Mon, 31 Aug 2015 15:37:05 +0000 (16:37 +0100)
committerSimon Tatham <anakin@pobox.com>
Mon, 31 Aug 2015 15:43:33 +0000 (16:43 +0100)
commitad994bab57c06bff0c6d06d0ca8806be0bb2afd2
tree87f2f1ba57bf0e1cce8a115e0bb439cc54841e49
parent7658b291dbde482d483500883af8ae31c4194e8c
Work around Pango fonts with fractional width.

By retrieving characters' widths using get_extents and not
get_pixel_extents, we can spot when they're not actually an exact
multiple of a pixel, and avoid getting confused by the overall width
of a long string being off by up to a pixel per character.
unix/gtkfont.c