Skip to content

How to draw text based on pixel height? #8737

Answered by radarhere
thebest132 asked this question in Q&A
Discussion options

You must be logged in to vote

https://app.uxcel.com/courses/design-lingo/typography-605/font-size-2298

Font size is the height of a typeface. Let's first define typographical terms like ascender and descender before moving on to a more detailed explanation.

  • Ascender is the vertical stroke found on lowercase letters (b, d, f, h, k, l, t) that extends above the typeface's x-height.
  • Descender is the part of a lowercase letter that extends below the baseline.

Font size equals the distance between the top of the ascender height to the bottom of the descender height.

So my expectation is that they would be the same. If you find otherwise, I suspect you're not considering ascenders and descenders.

I don't think this is a…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by radarhere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants