| Summary: | testime.c enhancement with GNU Unifont support | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Simon Hug <chli.hug> |
| Component: | *don't know* | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | enhancement | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: |
testime.c GNU Unifont support
testime.c GNU Unifont support testime.c GNU Unifont support |
||
Created attachment 2440 [details]
testime.c GNU Unifont support
I forgot to do the C89 pedantic test with the other patch. This one passes.
Created attachment 2450 [details]
testime.c GNU Unifont support
I cleaned it up some more and added Supplemental Multilingual Plane support.
Fixed, thanks! https://hg.libsdl.org/SDL/rev/d6e839e8b339 |
Created attachment 2439 [details] testime.c GNU Unifont support I'm proposing some changes to the IME test program test/testime.c. The patch includes support for the GNU Unifont hex file, making the SDL_ttf dependency optional. There were also one or two bugs that prevented the text and underline from showing up poperly. An additional change is in src/test/SDL_test_common.c with the spacebar key event code. It's really annoying to input text if the spacebar opens a messagebox. This now only happens with control + spacebar. There are other keys that do something which make text input harder, but it's possible to work around them. Perhaps some option to disable these debugging helpers can be added at some other time to the SDLText framework. I tested it on Windows (8.1) and quickly on Linux (without an IME), but I don't have an OS X system. Maybe someone else can give it a go?