Font Fallbacks limits / mix of different characters
Posted: 08 Aug 2024, 18:25
Hey!
In our project we are registering font fallbacks by using "Noesis::GUI::SetFontFallbacks". We have some cases when text can have a mixture of characters from different languages, e.g. to support displaying Xbox Modern Gamertag (https://learn.microsoft.com/en-us/gamin ... s/xr/xr046):
- สริฐ众云нь컴퓨터
- आचुथाώঅঙぁゖァヺ
- нøÜsêþåЯЂў
Whenever we add a new font to support e.g. Bengali or Devanagari (using e.g. Noto Sans from Google Fonts: https://fonts.google.com/noto/specimen/ ... ns+Bengali), the order of the fallbacks seem to matter and we cannot get all of character working at the same time (i.e. either สริฐ or आचुथा is displayed correctly). Do you have any hints how to overcome this? Have you encountered such issue before?
At first I thought that maybe Noto Sans variants have the same font family name, which SystemFontProvider would just ignore, but they all have unique one.
Thanks,
Szymon
In our project we are registering font fallbacks by using "Noesis::GUI::SetFontFallbacks". We have some cases when text can have a mixture of characters from different languages, e.g. to support displaying Xbox Modern Gamertag (https://learn.microsoft.com/en-us/gamin ... s/xr/xr046):
- สริฐ众云нь컴퓨터
- आचुथाώঅঙぁゖァヺ
- нøÜsêþåЯЂў
Whenever we add a new font to support e.g. Bengali or Devanagari (using e.g. Noto Sans from Google Fonts: https://fonts.google.com/noto/specimen/ ... ns+Bengali), the order of the fallbacks seem to matter and we cannot get all of character working at the same time (i.e. either สริฐ or आचुथा is displayed correctly). Do you have any hints how to overcome this? Have you encountered such issue before?
At first I thought that maybe Noto Sans variants have the same font family name, which SystemFontProvider would just ignore, but they all have unique one.
Thanks,
Szymon