Load all fonts folders

This commit is contained in:
GenevensiS
2025-07-10 17:17:10 +02:00
committed by GitHub
parent 026400a1e0
commit dafd1a4f19
3 changed files with 27 additions and 18 deletions
+3 -2
View File
@@ -49,8 +49,9 @@ public:
Font();
/// Load fonts (.ttf or .otf) from the given directory and its subdirectories, returns true if there were errors
static bool PreloadResourceFonts(String fontsDirectoryPath, bool recursive);
/// Load fonts (.ttf or .otf) from all directories in the app directory that contain "fonts" in their names,
/// and optionaly their subdirectories, returns true if there were errors
static bool PreloadResourceFonts(bool recursive);
/// Adds font file paths from the given directory into fontFilePaths
static void TallyResourceFonts(String fontsDirectoryPath, vector<String>& fontFilePaths, bool recursive);
/// Update the scritables, returns true if there is a change