Open kerams opened 2 months ago
The text is shaped with [OpenSans|Default|OpenSans] because OpenSans
isn't mapping any glyph to ȯ
I don't see any issue here.
That's just one of 3 different issues described
ȯ
breaks rendering of subsequent characters on Androidȯ
is rendered with Open Sans on Android, but NFC is used on Windows (which Open Sans does not cover)). I can live with this inconsistency as long as the 2 problems above are ironed out.You specify a fallback sequence for the first two and the first matching font is used. Why should the result any different when the only font that has a matching glyph is OpenSans?
That's exactly my question. Why does the result change with different ordering? Not only that, why is the behavior not consistent between Android and Windows?
I do not see any differences on Windows we might need to add a unit test
Using my repro project lines 1 and 2 look the same on your Windows PC?
I can repro the issue
Describe the bug
Try to render
kğżȯgda
in aTextBlock
using combinations of Noto Sans Hebrew and Open Sans.Noto Sans Hebrew does not contain Latin characters, so
kğż
are looked up in the Open Sans fallback. However,ȯ
(a precomposed character rather thano
with a combining dot) does not exist in Open Sans either, so it should use system font fallback, or be interpreted aso
with a combining dot, which Open Sans can handle.On Android
ȯgda
. At the very least, the rest of the text afterȯ
should be rendered with Open Sans.ȯ
, which was intepreted as a combination ofo
and a dot by the looks of it.On Windows
ȯgda
is rendered using system font fallback. At the very least, the rest of the text afterȯ
should be rendered with Open Sans.ȯ
is strangely not intepreted as a combination ofo
and a dot (unlike on Android above), so system fallback is used, and the rest of the string is Open Sans again.To Reproduce
https://github.com/kerams/font3, run
TstFs.Android
in emulator,ConsoleApp1
is the desktop version.Expected behavior
The first 2 lines should be rendered in their entirety with Open Sans.
Avalonia version
11.2.999-cibuild0051894-alpha
OS
Windows, Android
Additional context
No response