Search Unity

Text size on Android

Discussion in 'Android' started by benhigg, Sep 11, 2010.

  1. benhigg

    benhigg

    Joined:
    Aug 3, 2010
    Posts:
    34
    All of my GUI text is showing up really tiny on my phone. Is there another way to do it? I can change the font size and see it change on the computer, but when I push it to the phone it comes out tiny.
     
  2. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    use multiple fonts so you have different font sizes and use the right one in relation to the actual devices screen size. (and ensure that the game window in unity has the size of your device screen size)

    or make a unified screen and use the GUIUtility matrix to scale it up to the end device from that fixed size size (+ naturally correspondingly modify the rect sizes for all stuff)
     
  3. benhigg

    benhigg

    Joined:
    Aug 3, 2010
    Posts:
    34
    Heh, didn't realize I could just pull .ttf files in to make a font for in game. Kept trying to make custom fonts and had no clue what I was doing. Got it working now. Thanks.
     
  4. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601