Closed Bykiev closed 1 year ago
The font mesuring was recently completly rebuilt so there is an extreamly good chance that the old measurment wasn't correct.
If you believe it is still incorrect please provide some details on why its wrong (more than its different that it used to be) i.e. something along the lines of the images in #332 showing us what bits are wrong would be a major benefit to understanding the problem you think your seeing
maybe try using one of the other Measure apis MeasureAdvance
& MeasureBounds
they each measure different things about the rendered text.
maybe try using one of the other Measure apis
MeasureAdvance
&MeasureBounds
they each measure different things about the rendered text.
Sorry, I'm new to the fonts, from the docs I can't understand what is the difference between MeasureSize
, MeasureAdvance
and MeasureBounds
?
I believe I need MeasureSize
method. I did some tests and in latest version it returns Arial font's size greater than Calibri. You can check the row height in Excel, and Calibri row height will be greater. I've tried with MeasureAdvance
and it returns 27px for both of them.
So, the correct height for 20px Calibri on 96 DPI is 33 and 31 for Arial
How do you know what the “correct” height is?
Text and glyph measurement is extremely accurate and comes from the metrics within the font.
Advance - This measures the vertical and horizontal advance of the glyphs and text. I.E the glyph bounds + any padding. This includes line height.
Size - This measures the glyph bounds and the vertical ascent which includes any leading vertical padding.
Bounds - This measures the glyph bounds with no padding.
Since you know little about fonts I would recommend asking questions in our discussion forums rather than opening issues. Issues are for verified defects only.
I’m going to close this just now.
Description
In the latest version text height is calculating incorrectly. In previous beta version for font Calibri, 20px TextMeasurer.MeasureSize height was 33, but now it's getting 18.
Steps to Reproduce
System Configuration