General UNIHIKER

Unihiker K10 fonts/size

userHead RoniBandini 2025-08-07 21:03:41 190 Views1 Replies

Is there some way to specify text size and font in canvasText?

Thanks 

2025-08-11 21:10:02

I found the info in one of the library code examples:

    k10.canvas->canvasText("UNIHIKER K10", 1, 0x0000FF);
   k10.canvas->canvasText("UNIHIKER K10 has on board temp/humi sensor, Acceleration sensor and microphone", 0, 70, 0xFF0000, k10.canvas->eCNAndENFont16, 25, true);
   k10.canvas->canvasText("UNIHIKER K10 has on board temp/humi sensor, Acceleration sensor and microphone", 0, 120, 0x0000FF, k10.canvas->eCNAndENFont24, 10, true);
   k10.canvas->updateCanvas();

userHeadPic RoniBandini