TextMeasurer.TryMeasureCharacterBounds doesn't return bounds for some characters using Style Script font #401
-
|
I ran into a problem where TextMeasurer.TryMeasureCharacterBounds removes some glyphs when measuring a text using Style Script font. I am using the latest version of SixLabors.Fonts (2.0.3) with .NET 8 on Windows 10. Steps to reproduce: After some debugging I found that LookupType4SubTable.TrySubstitution removes the second 'e' from "enter" and 't' from "the". This looks like a bug, though I am not sure. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
There's no issue here. Here's what is happening:
This leaves 19 glyphs in total instead of the original 21. As you can see the output is correct. If you wish to see a step by step demonstration of the process you can use this website. |
Beta Was this translation helpful? Give feedback.


There's no issue here.
Here's what is happening:
e (507)andr (801)are replaced by ligaturee_r (509).13 t (851)h (588)are replaced by ligaturet_h (852)This leaves 19 glyphs in total instead of the original 21.
As you can see the output is correct.
If you wish to see a step by step demonstration of the process you can use this website.
https://www.corvelsoftware.co.uk/crowbar/