Change font for object text dynamically?

  • #1, by constantinThursday, 09. November 2017, 16:53 7 years ago
    is there a way to change the font for object texts within the game? i need to use a special font in one scene for object texts and couldn´t find any solution. 

    Forum Fan

    167 Posts


  • #2, by sebastianThursday, 09. November 2017, 16:55 7 years ago
    is there a way to change the font for object texts within the game? i need to use a special font in one scene for object texts and couldn´t find any solution. 

    since the latest RC2 version object text can now have a specific font in the display object text action part. Before lua was needed to change it temporarily. But it now should work as mentioned above.

    Thread Captain

    2346 Posts

  • #3, by constantinThursday, 09. November 2017, 16:57 7 years ago
    please tell me how to do this in lua - i still use 4.2.5 

    Forum Fan

    167 Posts

  • #4, by sebastianThursday, 09. November 2017, 16:59 7 years ago
    please tell me how to do this in lua - i still use 4.2.5 
    super old method:
    game:setValue(VGameObjectFont,"Fonts[myfontname]")

    i recommend setting it back after your displayed the text (it gets not affected by that, only if you use display object text again for that object.)

    Thread Captain

    2346 Posts

  • #5, by constantinThursday, 09. November 2017, 17:01 7 years ago
    thanks! i love superold methods.

    Forum Fan

    167 Posts