Closed jfrueh closed 4 months ago
I think that's the margin actually. Do the differences go away with margin: 0
? I missed this duality in the spec:
The 'em' unit is equal to the computed value of the 'font-size' property of the element on which it is used. The exception is when 'em' occurs in the value of the 'font-size' property itself, in which case it refers to the font size of the parent element.
Working on a fix... thanks for the bug report!
Awesome, works great. Thank you!
I've been battling some line height issues (or at least what I believe are issues related to line height on block style elements). The image below is just really simple HTML on the left and that same HTML rendered to the canvas on the right. My expectation was that both words would have the same vertical position.
Code for the left 'Test':
<p style="font-size:120px;font-family:'Noto Sans'">Test</p>
Code for the right 'Test':
Wondering if there is something obvious that I'm missing here? I've tried every combination of line-height and margins that I can think of. Any ideas what I might be overlooking (or if there is an issue)?