ARCed.Helpers.FontHelper.LoadUserFonts C# (CSharp) 메소드

LoadUserFonts() 공개 정적인 메소드

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
리턴 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);
        }