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.

[SOLVED]GUI.Label() with other font

Discussion in 'Immediate Mode GUI (IMGUI)' started by flyber, Sep 24, 2009.

  1. flyber

    flyber

    Joined:
    Sep 14, 2009
    Posts:
    12
    Can I use my own font(*.ttf or other) when I drawing GUI.Label()? :roll:
     
  2. andeeeee

    andeeeee

    Joined:
    Jul 19, 2005
    Posts:
    8,768
    Yes! You'll notice that GUI.Label has an optional parameter of type GUIStyle. The GUIStyle has settings for the font and other CSS-like properties such as border, padding, etc.
     
  3. HiggyB

    HiggyB

    Unity Product Evangelist

    Joined:
    Dec 8, 2006
    Posts:
    6,183
    True-Type only. Check it:

    Font
     
  4. flyber

    flyber

    Joined:
    Sep 14, 2009
    Posts:
    12
    If I change parameter GUIStyle.font I don't see text... Why?
     
  5. flyber

    flyber

    Joined:
    Sep 14, 2009
    Posts:
    12
    sorry, this is my problem with font file...

    topic is closed.