public static void Register(Properties attributes) { string path; string alias = null; path = attributes.Remove("path"); alias = attributes.Remove("alias"); FontImp.Register(path, alias); }
/// <summary> /// Register a ttf- or a ttc-file and use an alias for the font contained in the ttf-file. /// </summary> /// <param name="path">the path to a ttf- or ttc-file</param> /// <param name="alias">the alias you want to use for the font</param> public static void Register(string path, string alias) { FontImp.Register(path, alias); }