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(bw): language special characters not working for 10x14 font size #4816

Merged
merged 4 commits into from
Mar 30, 2024

Conversation

philmoz
Copy link
Collaborator

@philmoz philmoz commented Mar 28, 2024

The fix in PR #4806 for handling language special characters in the B&W fonts did not work correctly for the 10x14 font.

This PR fixes that and cleans up the font handling to make the different font sizes more consistent.

It will now allow more than 64 special characters for language translation (if it is ever required).

It also fixes the STR_CHAR_UP and STR_CHAR_DOWN display on 128x64 size screens for the 4x6, 8x10 and 10x14 font sizes.

@pfeerick pfeerick changed the title fix(B&W): Language special characters not working for 10x14 font size fix(bw): language special characters not working for 10x14 font size Mar 28, 2024
@pfeerick pfeerick added translation bug/regression ↩️ A new version of EdgeTX broke something labels Mar 28, 2024
@pfeerick pfeerick added this to the 2.10 milestone Mar 28, 2024
@pfeerick pfeerick requested a review from 3djc March 28, 2024 22:29
@philmoz
Copy link
Collaborator Author

philmoz commented Mar 28, 2024

Updated with a description of the B&W font mappings.

@philmoz philmoz marked this pull request as draft March 29, 2024 01:53
@philmoz philmoz marked this pull request as ready for review March 29, 2024 03:16
@philmoz
Copy link
Collaborator Author

philmoz commented Mar 29, 2024

Added some constants to replace the magic numbers to (hopefully) make the code easier to maintain.

@3djc
Copy link
Collaborator

3djc commented Mar 29, 2024

Works wonder on UA work, so I guess it will work for anything :)

Copy link
Member

@raphaelcoeffic raphaelcoeffic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 🤩

Copy link
Member

@pfeerick pfeerick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had a quick look at DE and CZ for boxer, x9d and tx16 versus prior screenshots and couldn't see any changes so LGTM. Removal of 'magic numbers' and documentation much appreciated.

@pfeerick pfeerick merged commit d73d88a into EdgeTX:main Mar 30, 2024
44 checks passed
pfeerick pushed a commit that referenced this pull request Mar 30, 2024
…4816)

Also cleans up the font handling to make the different font sizes more consistent.
It will now allow more than 64 special characters for language translation (if it is ever required).
ThomasKuehne pushed a commit to ThomasKuehne/edgetx that referenced this pull request Apr 5, 2024
…dgeTX#4816)

Also cleans up the font handling to make the different font sizes more consistent.
It will now allow more than 64 special characters for language translation (if it is ever required).
@philmoz philmoz deleted the bw-fonts branch June 25, 2024 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/regression ↩️ A new version of EdgeTX broke something translation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants