changeset 97832:e33a2e6c1dab

(struct uniscribe_font_info): Include composite.h. (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
author Kenichi Handa <handa@m17n.org>
date Fri, 29 Aug 2008 07:57:43 +0000
parents cdeb60ce9393
children 6e54941ad0d7
files src/w32uniscribe.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32uniscribe.c	Fri Aug 29 07:57:31 2008 +0000
+++ b/src/w32uniscribe.c	Fri Aug 29 07:57:43 2008 +0000
@@ -34,6 +34,7 @@
 #include "dispextern.h"
 #include "character.h"
 #include "charset.h"
+#include "composite.h"
 #include "fontset.h"
 #include "font.h"
 #include "w32font.h"
@@ -223,7 +224,7 @@
   uniscribe_font = (struct uniscribe_font_info *) font;
 
   /* Get the chars from lgstring in a form we can use with uniscribe.  */
-  max_glyphs = nchars = LGSTRING_LENGTH (lgstring);
+  max_glyphs = nchars = LGSTRING_GLYPH_LEN (lgstring);
   done_glyphs = 0;
   chars = (wchar_t *) alloca (nchars * sizeof (wchar_t));
   for (i = 0; i < nchars; i++)