When compiling fltk2 for X11 with the --disable-xft option I get
strange symbols at the end of a string when entering special
characters in the input example.
The patch below solves the problem.

Regards,
Johannes


--- src/x11/Font_xlfd.cxx.orig  2007-10-15 17:43:16 +0200
+++ src/x11/Font_xlfd.cxx       2007-10-15 17:43:53 +0200
@@ -432,7 +432,7 @@ void fltk::drawtext_transformed(const ch
 #if !X_UTF8_FONT
     XDrawString16(xdisplay, xwindow, gc,
                  int(floorf(x+.5f)),
-                 int(floorf(y+.5f)), buffer, n);
+                 int(floorf(y+.5f)), buffer, count);
 #else
 #ifdef FONT_DEBUG
        //printf("current = %s\n", current->name);




_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to