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

Non-ASCII chars on oled screen #2

Open
Thomas-git opened this issue Feb 9, 2022 · 3 comments
Open

Non-ASCII chars on oled screen #2

Thomas-git opened this issue Feb 9, 2022 · 3 comments

Comments

@Thomas-git
Copy link

Non ASCII chars are displayed as ? on the oled screen.
Is it possible to show utf8 chars ? If not maybe map accentuated chars to ASCII (as is commonly done with url slugiffy functions) ?
Can you work on it ?

@not-jan
Copy link
Owner

not-jan commented Feb 11, 2022

Hi,
the font comes from https://crates.io/crates/embedded-text and is defined here: https://github.com/not-jan/apex-tux/blob/master/src/render/text.rs#L166

It's probably a non-trivial fix and I'm very short on time at the moment :(

@Thomas-git
Copy link
Author

Do I understand it well: text to draw is in self.text ? So a quick fix could be to change accentuated chars to their counter parts ? (é as e, à as a) etc. Am I right ?

@not-jan
Copy link
Owner

not-jan commented Feb 24, 2022

That would be one way to fix it, another would be to simply replace the font with an iso_8859_1 variant. This would probably be the easiest fix for you but not something I can merge into the master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants