diff options
author | Karl Ramm <kcr@1ts.org> | 2009-04-20 23:51:04 +0000 |
---|---|---|
committer | Karl Ramm <kcr@1ts.org> | 2009-04-20 23:51:04 +0000 |
commit | 141ce091298a1364e2f6f56f71ad751931120188 (patch) | |
tree | cfa6679818a40cd46945c8ad05d4a816b07d673e /zwgc/X_gram.h | |
parent | 4d4d68685dd9dbba905c5fa923833d48b3caf701 (diff) |
Transliterate to UTF-16 and use XDrawText16.
This leaves vast font issues, and selection issues, and bypasses
#6 in favor of #33.
Diffstat (limited to 'zwgc/X_gram.h')
-rw-r--r-- | zwgc/X_gram.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/zwgc/X_gram.h b/zwgc/X_gram.h index 62a1567..dfff8f1 100644 --- a/zwgc/X_gram.h +++ b/zwgc/X_gram.h @@ -24,12 +24,14 @@ #include "formatter.h" typedef struct _xblock { - unsigned long fgcolor; - Font fid; - int x,y; - int x1,y1,x2,y2; /* bounds of block. used for cut and paste. */ - int strindex; - int strlen; + unsigned long fgcolor; + Font fid; + int x,y; + int x1,y1,x2,y2; /* bounds of block. used for cut and paste. */ + int strindex; + int strlen; + char *wstr; + int wlen; } xblock; typedef struct _x_gram { @@ -46,11 +48,11 @@ typedef struct _x_gram { } x_gram; typedef struct _xauxblock { - int align; - XFontStruct *font; - char *str; - int len; - int width; + int align; + XFontStruct *font; + char *str; + int len; + int width; } xauxblock; typedef struct _xmode { |