You are using the new UI (Beta).Return to the original UI

This page has been automatically translated by machine translation. Please note that translations may not be entirely accurate.

keisanHigh-precision calculations for everyday life and work

Coordinates for centering right-aligned text on the display

Author: AkanagoExecutions: 0

※ This library was created by a member. This site is not responsible for its content.

Manage Bookmarks
This is useful when you want to display text in the center of a display or within a frame drawn on it using Arduino and files such as Adafruit_GFX.h.
All coordinates used as input and output in this calculation refer to the top-left corner of the object. The default values are based on an example of displaying text centered on an ILI9341 display using the FreeSans12pt7b.h font on an Arduino.
Frame width
px
Vertical height of the frame
px
The x-axis of the frame
px
Y-axis of the frame
px
Text length
px
Text height
px
When the number is not divisible
x px
y px

No customer feedback for this calculation yet.