| Summary: | Enable underline and strike-through styles for the SDL_ttf Wrapped functions | ||
|---|---|---|---|
| Product: | SDL_ttf | Reporter: | Sylvain <sylvain.becker> |
| Component: | misc | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | sezeroz |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: |
patch
test case screenshot |
||
|
Description
Sylvain
2018-10-26 09:58:05 UTC
Created attachment 3399 [details] patch Here's a patch. It enables both styles and uses the real text/line width, not the whole surface width. It has to be applied after bug #4266. Sam, I won't mess with this one, it's for you. Created attachment 3411 [details]
test case
adding test case and screenshot
Created attachment 3412 [details]
screenshot
screenshot.
underline and strike-through can be used with the ttf render wrap function.
it's not full width (surface width), but limited to the text line width.
Patch has been added, thanks! https://hg.libsdl.org/SDL_ttf/rev/b85e8441832e |