From 7d5abc4b2f2b9ea9a9d282329b53df279c612d9e Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 16 Aug 2004 00:58:14 +0000 Subject: [PATCH] *** empty log message *** --- src/draw.c | 34 ++++++++++++++++++++++++++++++++++ src/m17n-gui.h | 3 +-- 2 files changed, 35 insertions(+), 2 deletions(-) diff --git a/src/draw.c b/src/draw.c index 405e42d..1d82669 100644 --- a/src/draw.c +++ b/src/draw.c @@ -2660,6 +2660,40 @@ mdraw_glyph_info (MFrame *frame, MText *mt, int from, int pos, /*=*/ +/***en + @brief Compute information about glyph sequence. + + The mdraw_glyph_list () function computes information about glyphs + corresponding to the text between $FROM and $TO of M-text $MT when + it is drawn on a window of frame $FRAME using the + mdraw_text_with_control () function with the drawing control + object $CONTROL. $GLYPHS is an array of objects to store the + information, and $ARRAY_SIZE is the array size. + + If $ARRAY_SIZE is large enough to cover all glyphs, it stores the + number of actually filled elements in the place pointed by + $NUM_GLYPHS_RETURN, and returns 0. + + Otherwise, it stores the required array size in the place pointed + by $NUM_GLYPHS_RETURN, and returns -1. */ + +/***ja + @brief ¥°¥ê¥ÕÎó¤Ë´Ø¤¹¤ë¾ðÊó¤ò·×»»¤¹¤ë. + + ´Ø¿ô mdraw_glyph_list () ¤Ï¡¢´Ø¿ô mdraw_text_with_control () ¤¬ÉÁ²è + À©¸æ¥ª¥Ö¥¸¥§¥¯¥È $CONTROL ¤òÍѤ¤¤ÆM-text $MT ¤Î $FROM ¤«¤é $TO ¤Þ¤Ç + ¤ò¥Õ¥ì¡¼¥à $FRAME ¤ËÉÁ²è¤·¤¿¾ì¹ç¤Î¡¢³Æ¥°¥ê¥Õ¤Î¾ðÊó¤ò $GLYPHS ¤¬»Ø¤¹ + ÇÛÎó¤Ë³ÊǼ¤¹¤ë¡£ $ARRAY_SIZE ¤Ï¤½¤ÎÇÛÎó¤Î¥µ¥¤¥º¤Ç¤¢¤ë¡£ + + ¤â¤· $ARRAY_SIZE ¤¬¤¹¤Ù¤Æ¤Î¥°¥ê¥Õ¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤ò³ÊǼ¤¹¤ë¤Î¤Ë½½Ê¬¤Ç + ¤¢¤ì¤Ð¡¢ $NUM_GLYPHS_RETURN ¤¬»Ø¤¹¾ì½ê¤Ë¼ÂºÝ¤ËËä¤á¤¿Í×ÁǤοô¤òÀßÄê + ¤· 0 ¤òÊÖ¤¹¡£ */ + +/*** + @seealso + MDrawGlyph +*/ + int mdraw_glyph_list (MFrame *frame, MText *mt, int from, int to, MDrawControl *control, MDrawGlyph *glyphs, diff --git a/src/m17n-gui.h b/src/m17n-gui.h index a9fb460..1a8ea79 100644 --- a/src/m17n-gui.h +++ b/src/m17n-gui.h @@ -802,8 +802,7 @@ typedef struct /***en Metric of the glyph. */ /***ja ¥°¥ê¥Õ¤ÎÀ£Ë¡. */ - int lbearing, rbearing; - int ascent, descent; + int lbearing, rbearing, ascent, descent; /***en Font used for the glyph. Set to NULL if no font is found for the glyph. */ -- 1.7.10.4