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

Fix UTF support for TFT Color UI #25177

Merged

Conversation

jmz52
Copy link
Contributor

@jmz52 jmz52 commented Jan 2, 2023

Description

_LCODE macro used to select appropriate font with extra characters does not work.
As a result required font is not loaded and non-latin characters are displayed as '?'
Updated _LCODE macro definition to restore original functionality.

Fix utf8 descriptions for Latin-1 Supplement characters (0x00a1 - 0x00ff) that was corrupted during merge.
Example:

Corrupted character's description:
  // 0x00ff  ÿ
Correct character's description:
  // 0x00ff  ÿ

Real look and description of 0x00FF character: https://www.compart.com/en/unicode/U+00FF

Related Issues

#25073

@jmz52 jmz52 changed the title Fix utf8 description for Latin-1 Supplement characters (0x00a1 - 0x00ff) Fix UTF support for TFT Color UI Jan 4, 2023
@thinkyhead thinkyhead merged commit 7ca6650 into MarlinFirmware:bugfix-2.1.x Jan 8, 2023
tspiva pushed a commit to tspiva/Marlin that referenced this pull request May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants