Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How to access built in UNITY ARIAL FONT?

Discussion in 'iOS and tvOS' started by iEarthHero1, Oct 27, 2009.

  1. iEarthHero1

    iEarthHero1

    Joined:
    Jul 28, 2009
    Posts:
    301
    Created a GUISkin. Default is UINTY ARIAL FONT. But this is not in the drop down.

    If I replace the UNITY ARIAL FONT but want it back later or want to use it somewhere else, how do I get access to the UNITY ARIAL FONT?

    Thanks.
     
  2. cedric_l

    cedric_l

    Joined:
    Jan 30, 2013
    Posts:
    2
    Hello,

    This code return the default Arial Font:

     
    kiriri, Gibibit, bittarello and 4 others like this.
  3. codestage

    codestage

    Joined:
    Jul 27, 2012
    Posts:
    1,931
    You also may use generic version:
    Code (CSharp):
    1. Resources.GetBuiltinResource<Font>("Arial.ttf")
     
  4. nukadelic

    nukadelic

    Joined:
    Aug 5, 2017
    Posts:
    73
    ```ArgumentException: Arial.ttf is no longer a valid built in font. Please use LegacyRuntime.ttf```
    any workaround for this , can i manually add the ttf somewhere in the Assets folder instead ?
     
  5. AlienMe

    AlienMe

    Joined:
    Sep 16, 2014
    Posts:
    93
    Yes. You can add Arial.ttf to your project, and use it instead
    If you are using TextMesh Pro, you can also use 'Dynamic OS' fonts that get populated at runtime from the OS, on-device, fonts.
     
  6. cyliax

    cyliax

    Joined:
    Feb 25, 2014
    Posts:
    18
    As a warning to anyone using Arial in mobile apps. I know it's easy to embed this font, but without a valid license it's not legal to offer this font in your APK. Trust me, this may cost you dearly.