-
October 3rd, 2020, 14:56 #1
How to use <weight> property of a font in Unity
According to the API reference, there is <weight> attribute for a font. https://fantasygroundsunity.atlassia...s/4162481/font
I can't find examples how to use it. I have situation where bold="true" is not respected by Unity and want to try the weight. The MS documentation how to use LOGFONT in code is not really helping.
Any examples?The past is a rudder to guide us, not an anchor to hold us back.
-
October 3rd, 2020, 17:34 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,564
Only "file", "name" and "size" are supported in FGU by design. FGC was required to use LOGFONT, but FGU uses a completely different font engine. So, if you want weighting/styling changes, you should find a version of the font that already includes those option.
I'll remove those references from the documentation.
Regards,
JPG
-
October 3rd, 2020, 21:35 #3
Thanks for the clarification.
The past is a rudder to guide us, not an anchor to hold us back.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks