| Summary: | Asian languague support for TTF_RenderUTF8_Blended_Wrapped() in SDL_ttf-2.0.12 | ||
|---|---|---|---|
| Product: | SDL_ttf | Reporter: | George Wu <micstu> |
| Component: | misc | Assignee: | 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. | ||
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). |
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.