ARCed.Helpers.FontHelper.LoadUserFonts C# (CSharp) Method

LoadUserFonts() public static method

Loads all TrueType fonts found in the application's "Fonts" folder into memory.
This method also loads resource fonts embedded into the application.
public static LoadUserFonts ( ) : void
return void
        public static void LoadUserFonts()
        {
            var fontDir = Path.Combine(PathHelper.EditorDirectory, "Fonts");
            if (!Directory.Exists(fontDir)) return;
            foreach (string filename in Directory.GetFiles(fontDir, "*.ttf"))
                AddFileFont(filename);
        }