How change all FONT for other
CasualEvolution
Member, PRO Posts: 537
Hi all, is there an easy way to change the font I am using for countless places in my game, by another font, without having to do it one by one? It occurred to me to rename the font and always use the same name, but it does not work directly and mess with font editors seems a bit complicated too. This would not be a problem if the font could be defended as a parameter. Any ideas are welcome
Comments
All I can think of is renaming over the old font like you said, maybe you could search the .xml's as well and change, but probably as much work as going through and replacing in GS.
Follow us: Twitter - Website
You can open up the font in an app like Glyphs or FontBird, change the name of the font there, then resave/export the font. The name is stored internally in the font's metadata and that's what GS looks at, not at the filename.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
@AlchimiaStudios as @Armelline said, GS not looks at file name.
I change the metadata in font, naming "test" always to several fonts, however, later when replacing them in GS, the behavior was strange, sometimes it takes the new font, sometimes not, so I am afraid of introducing some error, which later on will be a problem in my code difficult to repair
@CasualEvolution If you replace a font with a font of the same name, you need to restart GameSalad before it picks up the change. It seems to put the font into memory or something.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Ah ok! thanks @Armelline