Follow-up Comment #2, bug #14487 (project wesnoth):
> src/font.cpp converts UTF-8 code to UCS2 which is only 16 bits wide, then
uses an iterator which only provides SDL-TTF with one half of each glyph at a
time.
No. What actually happens is that font selection happens on a ucs2 basis. So,
due to the surrogate characters, the incorrect font is selected for incorrect
sequences of characters. There is a simple fix, but it doesn't scale: it
would cause the font selection algorithm to use 65MB of memory.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?14487>
_______________________________________________
Message posté via/par Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs