-
Notifications
You must be signed in to change notification settings - Fork 84
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
Updated font handing #42
Comments
TextMid() doesn't correctly set the Y offset. I am making digital gauges and I used "double radius*sin(pi/180)+(width/2)" to get the Y coordinate of evenly spaced text around the center of the screen. I used the same code (copy and paste) to draw small circles around the points where the TextMid() characters should be. The center of the circles lines up very well with the bottom of the characters all the way around. |
That is how it is supposed to be, the text will be centre justified at the point given. Text() draws the string left justified, In all three the baseline of the font will be on the point. Were you thinking that the centre of the bounding box of the text would be at that point? |
Yes, that;s what I was thinking. Thanks!
…On Sat, Oct 21, 2017 at 8:58 PM, Paeryn ***@***.***> wrote:
That is how it is supposed to be, the text will be centre justified at the
point given.
Text() draws the string left justified,
TextMid() draws the string centre justified,
TextEnd() draw the string right justified.
In all three the baseline of the font will be on the point. Were you
thinking that the centre of the bounding box of the text would be at that
point?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#42 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AVG23yQwMHOdXtkPABrEb_Ko-W4KCmAZks5sujDPgaJpZM4HBsRx>
.
|
This is a tracking bug to discuss the implementation of updated font handling.
The text was updated successfully, but these errors were encountered: