GM:S 1.4 Font Size

Discussion in 'Programming' started by Heat4Life, Aug 27, 2016.

  1. Heat4Life

    Heat4Life Guest

    Hello there dude! Is there a 'font size' stuff on the GML? What I meant was Is there a code to customize the size of the current font?

    Thanks! All answers would be greatly appreciated! :D
     
  2. Aura

    Aura Guest

    Fonts are internally stored as images, so you can't alter the font size per se. You can however use draw_text_transformed() which would scale up/down the text. But since that would be scaling up/down instead of resizing, the text might lose quality and look blurry.

    The best way to have multiple font sizes is to keep different font resources for different sizes.
     
    Heat4Life likes this.
  3. TDSrock

    TDSrock Member

    Joined:
    Jun 29, 2016
    Posts:
    312
    If you want to do the scaling method. Scaling down is better in terms of quality.
     
  4. Phemus

    Phemus Member

    Joined:
    Jul 31, 2016
    Posts:
    90
    Or you can duplicate current font change the size and use draw_set_font. But it's long way I think.
     
    MarisFrance likes this.
  5. RangerX

    RangerX Member

    Joined:
    Jun 20, 2016
    Posts:
    2,593
    Scaling up can yield excellent results if you scale by an integer value.
    Scaling down will always result is graphical loss. I would avoid it.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice