OpenFontRender icon indicating copy to clipboard operation
OpenFontRender copied to clipboard

Seems unable to render fonts with too large font size

Open HalfSweet opened this issue 3 years ago • 1 comments

Hello, I came across your project and I ported it to my own device, excitingly it works for the most part, but I found a frustrating problem. When I set the font too big (about bigger than 170) it doesn't draw the font I want, have you encountered a similar problem? This is my code,I did not find any errors.

if (render->loadFont(_TimeFontPath))
	{
		Serial.println("Render initialize error");
		return;
	}
render->setDrawPixel(EPD->DrawPixel);
render->setFontSize(180);
render->setCursor(50, 70);
render->printf("A");
render->drawChar('1', 100, 100);

HalfSweet avatar May 13 '22 02:05 HalfSweet

Thank you for using this library! 😄

The same problem occurred in my environment too. I will try to fix it. Please wait for a while.

takkaO avatar May 14 '22 15:05 takkaO

@HalfSweet

The issue has been fixed and merged into the master branch. Thank you for your contribution.

P.S. Sorry for the delay 🙇‍♂️

takkaO avatar Nov 24 '22 13:11 takkaO

I have displayed up to 180 points and it works great. I call it fixed!

MikeyMoMo avatar Jan 16 '23 05:01 MikeyMoMo