When language is set to zh_TW (LANG=zh_TW), the metrics would be incorrect.
When rendering CJK characters, the width of each consecutive CJK characters would be off.
This changeset addresses the above problems by making a break in itemizer for every non-ascii characters, as well as forcing the metrics information to be in en_US. This assumes that monospace fonts have all ASCII glyphs. Also, this would cause ligatures in non-ASCII fail.
Note that this commit would cause slowdowns when editing lines containing too many non-ASCII glyphs, which would imply that performance rendering documents like Cyrillic would be heavily affected.
This changeset addresses two problems:
LANG=zh_TW
), the metrics would be incorrect.This changeset addresses the above problems by making a break in itemizer for every non-ascii characters, as well as forcing the metrics information to be in
en_US
. This assumes that monospace fonts have all ASCII glyphs. Also, this would cause ligatures in non-ASCII fail.Closes #256