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

Huge font size - possible? #402

Open
mister-Monk opened this issue Apr 2, 2024 · 6 comments
Open

Huge font size - possible? #402

mister-Monk opened this issue Apr 2, 2024 · 6 comments

Comments

@mister-Monk
Copy link

I need to show two numbers on the display as large as possible.
Ideally 64 pixels character height.
I chose the Open_Sans_Hebrew_Condensed font http://oleddisplay.squix.ch/
I'm guessing size 80 is perfect for this.
But starting from size 63, the screen does not draw the number 4.
And size 80 draws only the edge of the character.
In the editor, I moved all the characters to the left by three pixels.
Now only number 1 is drawn in full.
Only two or three digits need to be displayed.
Not enough buffer size? What to do?
ESP8266, SSD1306 I2C, latest library.
image

@nickbits1024
Copy link

the library needs to be modified to work with 16 bit values instead of chars. notice in the generated font array that some of the values are >255

@mister-Monk
Copy link
Author

Wonderful! I will try to study this issue. But bowing my head before the author’s skill, I still ask him to guide me on the right path!

@nickbits1024
Copy link

If you switch to a <3.0 version and format, it works as-is.
Also, somewhat related the font creator crashes (500 server error) with the new format (and Adafruit GFX) with sizes >80ish. <3.0 works.

@nickbits1024
Copy link

If you want to fix the drawing routine for the new version all that needs to be done is change the generated font from char to short/int16_t as well as all the local vars in the drawing routines.

@mister-Monk
Copy link
Author

As Shakespeare said, "This is Greek to me." I'll try to do this...

@marcelstoer
Copy link
Member

@nickbits1024 @mister-Monk just pay attention to the overall memory consumption.

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

No branches or pull requests

3 participants