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


It's 4 months since I looked at the code, and I didn't really understand
it properly then because it's all recursive and poorly refactored, but
if I remember correctly, there are different paths through the code for
constant width fonts and for proportional width fonts.

So it looks like my fix catches the problem with calculating the correct
number of characters (rather than bytes) for rendering in a fixed width
font. Now we need to look at handling the pixel width of the characters
when rendered in a proportional font.

I'm afraid there won't be a quick fix because:
- I don't have any spare time at the moment to look into it;
- I don't have the same locale and Chinese(?) fonts as you;
- I've forgotten how the code works;
- most important of all, this is probably the most obscure and poorly
  structured code that I've ever worked with...

D.


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

Reply via email to