-
Notifications
You must be signed in to change notification settings - Fork 16
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
Adding a getTextWidth(char* text_buffer) function #5
Comments
I have issued a pull request that speeds up rendering. This should work with any Adafruit_GFX API compatible library (drawFastHLine fn). |
ESP32 renders example "load from binary" now reports 54ms (8 bit parallel interface). If the cache is valid for a repeat render then this reduces to 27ms, which is circa 1ms per character. |
That's awesome. I'm using this primarily in some IT8951 (parallel epaper displays) but I'm sending data from ESP32S3 as fast I can per SPI. Will try and see if I can get more speed with your fix. |
|
Awesome work will try it before closing the ticket to give you feedback. |
Thanks TakkaO working as expected. Still didn't try the calculateBoundingBox but I will soon! |
To design stuff sometimes is great to know how much is the text width (Using font size) that you will draw. Lovyan has a function like this:
@takkaO if you give me some pointers on how to do it I can add it myself.
On another question: Is possible to speed up just a little bit the drawing?
Tried with ESP32 at 80Mhz and also at 160Mhz, the difference is not noticeable, but still I like a lot to see how it draws the font from the binary TTF. Amazing work!
The text was updated successfully, but these errors were encountered: