Geometric center of a character
in
Contributed Library Questions
•
2 years ago
Is there a way to calculate the exact geometric center of any character?
textAlign(CENTER, CENTER) doesn't work as it is referred to the font, not the char I want to print.
I'm sure it can be done at least using geomerative library but I don't know how.
Can you help me?
Thank you!
My task is to inscribe a character inside a circle of given diameter.
Using textWidth you can determine the character's width, but cannot find the equivalent for character's height.
textAlign(CENTER, CENTER) doesn't work as it is referred to the font, not the char I want to print.
I'm sure it can be done at least using geomerative library but I don't know how.
Can you help me?
Thank you!
Alex
1