Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proper UTF-16 and characters outside the BMP support #79

Closed
SDLBugzilla opened this issue Feb 11, 2021 · 1 comment
Closed

Proper UTF-16 and characters outside the BMP support #79

SDLBugzilla opened this issue Feb 11, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

Reported in version: unspecified
Reported for operating system, platform: Windows 10, x86_64

Comments on the original bug report:

On 2018-09-03 07:21:42 +0000, pjz wrote:

I propose a patch with added proper UTF-16 and characters outside the BMP support, which extends the fix to the bug # 3762. The code can be found at https://github.com/acmepjz/SDL_ttf/tree/utf16-fix.

  • Change the UCS-2 code to UTF-16 code, which allows characters outside the BMP range

  • Change various public functions (TTF_GlyphIsProvided, TTF_GlyphMetrics, TTF_RenderGlyph_***, etc.) to accept Uint32 for character instead of Uint16

  • Also added a UTF-32 to UTF-8 conversion routine (which is only used in TTF_RenderGlyph_***)

@SDLBugzilla SDLBugzilla added the enhancement New feature or request label Feb 11, 2021
@slouken
Copy link
Collaborator

slouken commented Jan 15, 2024

Duplicate of #230

@slouken slouken marked this as a duplicate of #230 Jan 15, 2024
@slouken slouken closed this as not planned Won't fix, can't repro, duplicate, stale Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants