We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2486

Summary: Asian languague support for TTF_RenderUTF8_Blended_Wrapped() in SDL_ttf-2.0.12
Product: SDL_ttf Reporter: George Wu <micstu>
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED DUPLICATE QA Contact: Sam Lantinga <slouken>
Severity: enhancement    
Priority: P2 CC: philipp.wiesemann, sylvain.becker
Version: unspecified   
Hardware: All   
OS: All   
Attachments: Modified source code of SDL_ttf.c.

Description George Wu 2014-04-09 13:39:04 UTC
Created attachment 1611 [details]
Modified source code of SDL_ttf.c.

SDL_ttf didn't quite show hospitability to Asian languages using UTF-8 and UNICODE . When using TTF_RenderUTF8_Blended_Wrapped() function (which the other to *_Blended_Wrapped() functions finally calls), it generates overlapped characters and wrong line wrapping. This patch is intended to fix these issues.
The change I made begins from line 1849 and ends from line 2277, see attachment. Please ignore changes elsewhere. It does work on my system, but robustness is not assured. I would be glad if someone tests it on an OS other than Windows.
Comment 1 Philipp Wiesemann 2014-04-13 18:20:09 UTC
The modified file is based on the last release and also contains an unused TTF_SetFontSize() from bug 2487.

A related bug is 2492 (it links here).
Comment 2 Sylvain 2019-01-31 14:01:31 UTC
closing since it's a duplicate of bug 2487 and 2492

*** This bug has been marked as a duplicate of bug 2487 ***