DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New] Link: http://www.fltk.org/str.php?L2158 Version: 1.3-current Thank you! And I also found that when "wrap_mode" was called with margin=0(ex: wrap_mode(1,0)), the text will be wrapped based on the pixel width of the current widget. The style(font size) will be considered, too! But it is pity that wrap_mode(1,0) for wide character is even worse than the original wrap_mode(1,20). The line composed of wide characters will never be wrapped! It seemed that wrap_mode(1,0) use a method like(use duplicate code but not share the same call?) the one to decide whether the scrollbar should be visible. This is done with the help of font-api but not utf8len/widthchar leng. Yes, this is another wrap-method. But for the original wrap method(wrap_mode(1,N), N>0), I still think it is a bug?. There the width of a line was counted based on bytes in utf8 encoding, but not based on real number of characters(as your one-line fixed) or based on column-width of wide characters (some methods like api "wcwidth()"). Link: http://www.fltk.org/str.php?L2158 Version: 1.3-current _______________________________________________ fltk-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-bugs
