-
Notifications
You must be signed in to change notification settings - Fork 40
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
Please add support for special Characters #30
Comments
The library already supports 8-bit fonts, for example the "DatacuteBoxyFont" example includes a custom font with a portion of the codepage 437 characters that are line drawing characters. I don't plan on adding Unicode support. |
Hi datacute, For the build of a stopwatch on a bicycle-steer, I needed a bigger font , like the 16x32. But this one was to big to put 10 characters in a row. the 16x8 was to small. I looked at lots of sites about fonts. The u8g2 fonts turned out not compatible. font16x32digits.txt
only one thing . . . oled.setFont(FONT16X32DIGITS); I hope this helps creating the glyphs you want. |
Thanks Jeroen, I have another repository with fonts for TIny4kOLED, at https://github.com/datacute/TinyOLED-Fonts That font repository includes a 16x32 digits font, with a couple more characters than the one you created. (Also defined as FONT16X32DIGITS) I presume you don't mind me adding your font to that repository? I'll correct the name to be 12x24 instead of 16x32, and will also correct some of the comments that still say that characters are 16 pixels wide. The only reason for the all uppercase is that the Tinusaur library I started with had the fonts named in that way, and I kept backwards compatibility of being able to write Since including a whole lot of fonts in August, I've been thinking about extending my DCFont structure to include an additional piece of information that says how many blank columns are needed between the characters. I will still use fixed width characters, but a lot of fonts use more ram than needed, with each character starting or ending with a zero column for correct kerning. An alternative, that I think I'll start with, is to add an additional parameter to the setFont call to specify how many empty columns to write after each character (defaulting to zero). |
Hi datacute, I don't mind you adding my 11 characters to your repository . I think it is where they belong. Groet van Jeroen |
I dont understand this also... How can I print ü on the display? |
@Flo082002 and @S-Snowball I've created a runnable example here: https://wokwi.com/arduino/projects/321550584653021779 |
Shameless plug here: If you want to create fonts, look at TTF2BMH. My fork (under PR#3) is an improved version that directly supports the format required by Tiny4kOLED (fixed or variable width). It will allow you to take (almost) any TTF font and convert it. |
nice work. |
My Font Converter windows application is now available at https://github.com/datacute/FontConverter |
Hi,
Your library is awesome.
It would be very nice if you could add characters like the German Umlaute äÄöÖüÜ or the characters with accents or the ° symbol.
Regards
Florian S
The text was updated successfully, but these errors were encountered: