Skip to content
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

Open
ajstarks opened this issue Jan 9, 2016 · 3 comments
Open

Updated font handing #42

ajstarks opened this issue Jan 9, 2016 · 3 comments

Comments

@ajstarks
Copy link
Owner

ajstarks commented Jan 9, 2016

This is a tracking bug to discuss the implementation of updated font handling.

@TaoHawaii
Copy link

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.

@paeryn
Copy link

paeryn commented Oct 21, 2017

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() draws 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?

@TaoHawaii
Copy link

TaoHawaii commented Oct 22, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants