From a7fd94cd62ec88538387a1a90e584bbeb2ad25de Mon Sep 17 00:00:00 2001 From: handa Date: Wed, 23 Jun 2004 05:35:18 +0000 Subject: [PATCH] (MDrawGlyphInfo): New members glyph_code and logical_width. (mdraw_glyph_list): Extern it. --- src/m17n-gui.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/m17n-gui.h b/src/m17n-gui.h index 1405919..0fc0c2f 100644 --- a/src/m17n-gui.h +++ b/src/m17n-gui.h @@ -741,7 +741,7 @@ typedef struct /***en Font used for the glyph. Set to NULL if no font is found for the glyph. */ - /***ja ¤½¤Î¥°¥ê¥ÕÍѤ˻Ȥï¤ì¤ë¥Õ¥©¥ó¥È¡£¸«¤Ä¤«¤é¤Ê¤±¤ì¤Ð NULL¡£ + /***ja ¥°¥ê¥Õ¤Ë»È¤ï¤ì¤ë¥Õ¥©¥ó¥È¡£¸«¤Ä¤«¤é¤Ê¤±¤ì¤Ð NULL¡£ the glyph. */ MFont *font; @@ -760,6 +760,15 @@ typedef struct int left_from, left_to; int right_from, right_to; + /***en Font glyph code of the glyph. */ + /***ja ¥Õ¥©¥ó¥ÈÆâ¤Î¥°¥ê¥Õ¥³¡¼¥É¡£ */ + int glyph_code; + + /***en Logical width of the glyph. Nominal distance to the next + glyph. */ + /***ja ¥°¥ê¥Õ¤ÎÏÀÍýŪÉý¡£¼¡¤Î¥°¥ê¥Õ¤È¤Î̾Ìܾå¤Îµ÷Î¥¡£ */ + int logical_width; + } MDrawGlyphInfo; /*=*/ @@ -843,6 +852,10 @@ extern int mdraw_text_per_char_extents (MFrame *frame, extern int mdraw_glyph_info (MFrame *frame, MText *mt, int from, int pos, MDrawControl *control, MDrawGlyphInfo *info); +extern int mdraw_glyph_list (MFrame *frame, MText *mt, int from, int to, + MDrawControl *control, MDrawGlyphInfo *info, + int array_size, int *num_glyphs_return); + extern void mdraw_text_items (MFrame *frame, MDrawWindow win, int x, int y, MDrawTextItem *items, int nitems); -- 1.7.10.4