User avatar
peanut
Topic Author
Posts: 27
Joined: 10 Oct 2023, 16:44

ToolTips and Hindi Font

22 May 2024, 23:11

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.
 
User avatar
sfernandez
Site Admin
Posts: 3363
Joined: 22 Dec 2011, 19:20

Re: ToolTips and Hindi Font

23 May 2024, 10:34

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>
 
User avatar
peanut
Topic Author
Posts: 27
Joined: 10 Oct 2023, 16:44

Re: ToolTips and Hindi Font

23 May 2024, 19:07

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.
 
User avatar
sfernandez
Site Admin
Posts: 3363
Joined: 22 Dec 2011, 19:20

Re: ToolTips and Hindi Font

28 May 2024, 19:11

I'm not able to reproduce it, could you please create a small project where this is happening and attach it/provide a link?

Who is online

Users browsing this forum: No registered users and 12 guests