Page 1 of 1

ToolTips and Hindi Font

Posted: 22 May 2024, 23:11
by peanut
Hello, I have this font family
            <FontFamily x:Key="Font.Family.Default">
                Assets/Fonts/#SF UI Display,
                Assets/Fonts/#Segoe UI Emoji,
                Assets/Fonts/#Noto Sans Devanagari,
                Assets/Fonts/#Noto Sans KR,
                Assets/Fonts/#Noto Sans Arabic,
                Assets/Fonts/#Noto Sans SC
            </FontFamily>
It all works fine in Blend but not in Unity - Hindi font (Noto Sans Devanagari). Its OK on normal Texts but it fails on ToolTips, it shows up as a bunch of question marks.

Is there a way to solve this? Thank you.

Re: ToolTips and Hindi Font

Posted: 23 May 2024, 10:34
by sfernandez
Did you get any errors about missing fonts when importing your xamls?

In your FontFamily resource you wrote the path Assets/Fonts/, it is because you have a folder named Assets next to the xaml where the FontFamily is defined? or do you mean the /Assets folder of the Unity project? In that case you have to prefix the folder with a slash to indicate it should look from the root of the project:
<FontFamily x:Key="Font.Family.Default">
  /Assets/Fonts/#SF UI Display,
  /Assets/Fonts/#Segoe UI Emoji,
  /Assets/Fonts/#Noto Sans Devanagari,
  /Assets/Fonts/#Noto Sans KR,
  /Assets/Fonts/#Noto Sans Arabic,
  /Assets/Fonts/#Noto Sans SC
</FontFamily>

Re: ToolTips and Hindi Font

Posted: 23 May 2024, 19:07
by peanut
No, no error. The font works fine on the rest of the UI. Its just the tooltips.
it is because you have a folder named Assets next to the xaml where the FontFamily is defined?
Yes, its a folder next to xaml.

Re: ToolTips and Hindi Font

Posted: 28 May 2024, 19:11
by sfernandez
I'm not able to reproduce it, could you please create a small project where this is happening and attach it/provide a link?