@ustk Thank you!
I made an inline function to load all of the fonts from your project fonts folder and auto-name them. I thought it would be easier just to drag the .ttf or .otf into the Fonts folder and let this do the rest. FYI- the naming here removes "-Regular" from the loadFontAs target name so for instance "Nunito-Regular" will now just be referred to as "Nunito". The other types will keep their suffix.
// this will load all of your fonts which are stored in the projectFolder/Images/Fonts inline function loadAllFontsFromProjectFolder() { local appDataFolder = FileSystem.getFolder(FileSystem.AppData); local fontsFolder = appDataFolder.getChildFile("Fonts"); local fontFiles = FileSystem.findFiles(fontsFolder, "*.ttf;*.otf", false); for (file in fontFiles) { local fontPath = file.toString(File.FullPath); local fontName = file.toString(File.Filename); local targetName = ""; // if the file name suffix is "-Regular", loadAs will use just the prefix if (fontName.endsWith("-Regular.ttf") || fontName.endsWith("-Regular.otf")) targetName = fontName.substring(0, fontName.lastIndexOf("-Regular.")); else if (fontName.endsWith(".ttf") || fontName.endsWith(".otf")) targetName = fontName.substring(0, fontName.lastIndexOf(".")); Engine.loadFontAs(fontPath, targetName); } }