Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question What the actual difference between [-unity-font] and [-unity-font-definition] in USS properties

Discussion in 'UI Toolkit' started by Alobal17, Apr 10, 2023.

  1. Alobal17

    Alobal17

    Joined:
    Aug 2, 2019
    Posts:
    9
    Hi!
    From the USS reference , I know [-unity-font] is defined a Font object, [-unity-font-definition] is defined as FontDefinition structure.
    But what is the differnce between Font and FontDefinition ? And what situation should I use the [-unity-font] instead of [-unity-font-definition] , or vice versa?
    upload_2023-4-10_21-53-12.png
     
  2. huwp

    huwp

    Joined:
    May 22, 2013
    Posts:
    33
    Alobal17 likes this.
  3. Alobal17

    Alobal17

    Joined:
    Aug 2, 2019
    Posts:
    9
    Thanks !! That post is useful, and I'm sorry for missing that.