trouble with fonts on 3.0.11
Having difficulty with Fonts.
I just upgraded to 3.0.11 from 3.0.9, and it appears that any text that does not have a family explicitly defined is invisible in Unity, but is fine in Blend. If I change the family, everything is fine. I double checked the theme and it looks ok (no accidental changes from 3.0.9). In addition, I changed the "Default Font" in the Noesis Settings to match the font in my theme, but it still didn't work.
Separate, but potentially related:
There is some real oddness happening with the fonts in my theme. My fonts reside in the same directory as my theme files. We did this because otherwise Blend doesn't show the fonts when I select the Theme.Fonts asset.. In other words, the font reference looks like this:
And the font asset won't list any fonts as being referenced.
However, if I change the font reference to look like this (with a relative path reference):
Then the font theme asset DOES show the fonts in the font list, however now the fonts in Blend dont' work properly any longer.
Suggestions?
thanks,
sam
I just upgraded to 3.0.11 from 3.0.9, and it appears that any text that does not have a family explicitly defined is invisible in Unity, but is fine in Blend. If I change the family, everything is fine. I double checked the theme and it looks ok (no accidental changes from 3.0.9). In addition, I changed the "Default Font" in the Noesis Settings to match the font in my theme, but it still didn't work.
Separate, but potentially related:
There is some real oddness happening with the fonts in my theme. My fonts reside in the same directory as my theme files. We did this because otherwise Blend doesn't show the fonts when I select the Theme.Fonts asset.. In other words, the font reference looks like this:
Code: Select all
<FontFamily x:Key="Font.Family.Default">#PT Root UI</FontFamily>
However, if I change the font reference to look like this (with a relative path reference):
Code: Select all
<FontFamily x:Key="Font.Family.Default">./#PT Root UI</FontFamily>
Suggestions?
thanks,
sam
-
sfernandez
Site Admin
- Posts: 2984
- Joined:
Re: trouble with fonts on 3.0.11
Hi Sam,
How are you specifying the FontFamily, in the root of your UserControls? If you don't set it there it will fallback to the default font specified in the Noesis Settings. And in Blend it will fallback to the operating system default font.
You can use a relative path like "./#PT Root UI" or an absolute path like "/FontsTest;component/Assets/GUI/Theme/#PT Root UI". Both should work fine in Blend and Unity as I've just verified.
If you go back to NoesisGUI 3.0.9 without modifying anything else, are the fonts working fine again?
If you inspect in Unity the theme xaml asset, does it have the font as a dependency?any text that does not have a family explicitly defined is invisible in Unity, but is fine in Blend. If I change the family, everything is fine. I double checked the theme and it looks ok (no accidental changes from 3.0.9). In addition, I changed the "Default Font" in the Noesis Settings to match the font in my theme, but it still didn't work.
How are you specifying the FontFamily, in the root of your UserControls? If you don't set it there it will fallback to the default font specified in the Noesis Settings. And in Blend it will fallback to the operating system default font.
When you don't specify a path in the FontFamily (even if the name contains the # symbol), the font it is considered as a system font. You can read more about this here: https://www.noesisengine.com/docs/Gui.C ... ont-familyThere is some real oddness happening with the fonts in my theme. My fonts reside in the same directory as my theme files. We did this because otherwise Blend doesn't show the fonts when I select the Theme.Fonts asset.. In other words, the font reference looks like this: <FontFamily x:Key="Font.Family.Default">#PT Root UI</FontFamily>
You can use a relative path like "./#PT Root UI" or an absolute path like "/FontsTest;component/Assets/GUI/Theme/#PT Root UI". Both should work fine in Blend and Unity as I've just verified.
If you go back to NoesisGUI 3.0.9 without modifying anything else, are the fonts working fine again?
Re: trouble with fonts on 3.0.11
Restarting unity seems to have fixed this.
In general, it looks like Noesis complains for everyone the first time they launch it, saying the fonts are not found, but if you relaunch unity everything works.
sam
In general, it looks like Noesis complains for everyone the first time they launch it, saying the fonts are not found, but if you relaunch unity everything works.
sam
Re: trouble with fonts on 3.0.11
We will try to reproduce this. This must be fixed. When you say "for everyone the first time they launch it", you mean after a new upgrade right? Or this is happening from time to time without upgrading?
Re: trouble with fonts on 3.0.11
Yes, it happens once for everyone after the upgrade. Not positive re: happening from time to time without upgrade. It might be a product of assets that need to be imported? Will try to do some tests here.
sam
sam
-
sfernandez
Site Admin
- Posts: 2984
- Joined:
Re: trouble with fonts on 3.0.11
I've been trying to reproduce this issue without success. What I've been doing to upgrade the plugin is:Yes, it happens once for everyone after the upgrade.
1. Close Unity.
2. Delete Assets/NoesisGUI/Plugins folder.
3. Open Unity and click "Ignore" on Enter Safe Mode dialog (ignoring compiler errors).
4. Import NoesisGUI package to install the plugin.
After this I can hit Play and everything works as expected.
What steps do you follow to upgrade our plugin?
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Semrush [Bot] and 82 guests