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


If you poke around on the NEdit web pages, there's the comment somewhere,
and I paraphrase here, that proportional fonts are not handled well
because nedit is really a programmers' editor, designed for use with
source code, with fixed width fonts and columns of characters. I think,
therefore, that we might be trying to shoe-horn something into this code
that is never going to fit properly. The code is not exactly clear and
easily maintainable now, never mind adding special case code. But then,
as the latest release of NEdit was 5.5 in 2004, so it looks unlikely
that there will be new releases. So we don't need to remain compatible.

Unless we provide a completely new widget, written from the ground up,
we should probably be looking at making some clear statements in the
documentation (for wrap_mode() perhaps?) that explain that:

- wrapping is based on glyph pixel width only (no columns)
- wrapping is based on 1 column per character for fixed width LGC fonts
- wrapping is based on 2 column per character for fixed width CJK fonts
- mixing the last two may produce unexpected results.

Maybe we could extend wrap_mode() to have an additional parameter that
specifies the number of columns per character, with 0 for mixed fonts.
Just thinking aloud...


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