You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jdm is probably right. If someone wants to take a look my previous comment may be a good starting point. I might take a look at it if I have enough time.
yeah. to further illustrate, the current code returns these font metrics for segoe ui at 40px. if you look closely, the current algorithm for windows reports a line gap of 21px for a 40px font size, which obviously cannot be correct.
What you can do is dump the values of the struct returned by the DirectWrite API. As we already summing three fields in the struct to compute the baseline I would be suprised if we need to add more. Maybe it is a problem of sign in the line linegap value of the DirectWrite struct (The 2 others are unsigned) or a unit problem.
Activity
pyfisch commentedon Apr 15, 2017
Can not reproduce on Ubuntu 16.04. Why is the font family either Tahoma or Ubuntu? It may help to remove one font.
atouchet commentedon Apr 15, 2017
I get the same output as @BlackSVK in Windows 10.
ocerman commentedon Apr 15, 2017
@pyfisch It seems it does not matter which font I set.
sciguyryan commentedon Apr 15, 2017
I can confirm that this issue definitely exists on Windows 10. The font also doesn't seem to affect the results at all.
jdm commentedon Apr 15, 2017
This may be an example of #16034 being an incomplete solution.
codec-abc commentedon May 2, 2017
jdm is probably right. If someone wants to take a look my previous comment may be a good starting point. I might take a look at it if I have enough time.
hinaria commentedon Jun 15, 2017
yeah. to further illustrate, the current code returns these font metrics for segoe ui at 40px. if you look closely, the current algorithm for windows reports a line gap of 21px for a 40px font size, which obviously cannot be correct.
i will fix this tonight.
Auto merge of #17340 - hinaria:master, r=<try>
codec-abc commentedon Jun 15, 2017
What you can do is dump the values of the struct returned by the DirectWrite API. As we already summing three fields in the struct to compute the baseline I would be suprised if we need to add more. Maybe it is a problem of sign in the line linegap value of the DirectWrite struct (The 2 others are unsigned) or a unit problem.
hinaria commentedon Jun 15, 2017
this issue should be fixed in #17340! :D
@codec-abc of course, that's is the obvious first step. in any case, it's fixed already!
Auto merge of #17340 - hinaria:master, r=jdm