| Summary: | Asian language support for SDL_ttf-2.0.12 (fix) | ||
|---|---|---|---|
| Product: | SDL_ttf | Reporter: | George Wu <micstu> |
| Component: | misc | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | enhancement | ||
| Priority: | P2 | CC: | philipp.wiesemann, sylvain.becker |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | The fixed TTF_RenderUTF8_Blended_Wrapped() function | ||
|
Description
George Wu
2014-04-12 06:29:24 UTC
The new version of utilGetGlyphWidth() is missing for this fix to be useful. In bug 2486 it has only two parameters instead of three. (In reply to Philipp Wiesemann from comment #1) > The new version of utilGetGlyphWidth() is missing for this fix to be useful. > In bug 2486 it has only two parameters instead of three. The parameter 'ch' is a dummy one, at least in current version of code. Thanks for figuring out. I checked the code yesterday and found several spelling mistakes in comments, sorry. By the way, I still don't get the right way to measure a glyph. I thought that maxx minx means the real width of a glyph (as shown in utilGetGlyphWidth()), which in fact is glyph->advance - glyph->minx or glyph->maxx - glyph->minx, but it works awful in my test cases. But how can it work in TTF_SizeUTF8()? The conclusion is that, the right delimition of characters, including Western and Asian ones, is completed. However, measuring them is still a problem. For complex text shaping you may want either: Bug 3211 - Complex text layout support Bug 3046 - SDL_ttf + HarfBuzz So this is fixed with previous patches |