Jump to content

Edit fonts.lua from MOD without really touching fonts.lua


Recommended Posts

I need to edit fonts.lua from a mod with really touching the lua file (fonts.lua )

I need to change this:

{ filename = "fonts/spirequal"..font_posfix..".zip", alias = NEWFONT, fallback = DEFAULT_FALLBACK_TABLE },    

to this:

{ filename = "fonts/fallback_full_packed"..font_posfix..".zip", alias = NEWFONT, fallback = DEFAULT_FALLBACK_TABLE },    

 

how can i do that on modmain.lua?

 

NOTE: adding this do not do the work:
GLOBAL.NEWFONT = "fallback_font"

i need to change the file loaded completely.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...