DICE PACKS BUNDLE
  1. #1
    Valyar's Avatar
    Join Date
    Mar 2018
    Location
    Europe
    Posts
    2,117

    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.

  2. #2
    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

  3. #3
    Valyar's Avatar
    Join Date
    Mar 2018
    Location
    Europe
    Posts
    2,117
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
FG Spreadshirt Swag

Log in

Log in