summaryrefslogtreecommitdiff
path: root/src/vtedraw.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2007-02-04 21:53:01 +0000
committerChris Wilson <cpwilson@src.gnome.org>2007-02-04 21:53:01 +0000
commitee4147edf2bff9a844a5b1e2f1c17fc5f988afa0 (patch)
tree936296ebcb127338e735dbe1735b85342efee2f4 /src/vtedraw.h
parent71b1922740896554509a64e77c4f3598a2031b71 (diff)
Bug 106618 – CJK 'fixed width' font and 's p a c e d o u t' issue
2007-02-04 Chris Wilson <chris@chris-wilson.co.uk> Bug 106618 – CJK 'fixed width' font and 's p a c e d o u t' issue * src/vtedraw.h: * src/vteglyph.c: (_vte_glyph_cache_set_font_description): * src/vtepango.c: (_vte_pango_set_text_font): * src/vtepangox.c: (_vte_pango_x_set_text_font): * src/vtexft.c: (_vte_xft_set_text_font): Detect a change in font between wide-chars and recheck for a fixed-width estimate. svn path=/trunk/; revision=1618
Diffstat (limited to 'src/vtedraw.h')
-rw-r--r--src/vtedraw.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/vtedraw.h b/src/vtedraw.h
index 84403f5..bbff2f9 100644
--- a/src/vtedraw.h
+++ b/src/vtedraw.h
@@ -32,7 +32,12 @@ G_BEGIN_DECLS
#define VTE_DRAW_SINGLE_WIDE_CHARACTERS "ABCDEFGHIJKLMNOPQRSTUVWXYZ" \
"abcdefgjijklmnopqrstuvwxyz" \
"0123456789./+@&"
-#define VTE_DRAW_DOUBLE_WIDE_CHARACTERS 0x4e00, 0x4e8c, 0x4e09, 0x56db, 0x4e94
+#define VTE_DRAW_DOUBLE_WIDE_CHARACTERS 0x4e00, 0x4e8c, 0x4e09, 0x56db, 0x4e94,\
+ 0xac00, 0xac01, 0xac04, 0xac08, 0xac10
+/* For Pango, we have to use CJK Ideographs alone. Otherwise, 'width'
+ returned by pango_layout would be screwed up for Chinese and Japanese
+ fonts without Hangul */
+#define VTE_DRAW_DOUBLE_WIDE_IDEOGRAPHS 0x4e00, 0x4e8c, 0x4e09, 0x56db, 0x4e94
#define VTE_DRAW_OPAQUE 0xff
#define VTE_DRAW_MAX_LENGTH 540