static ThemeResolutionService() { string str = "Telerik.WinControls.Resources."; ThemeResolutionService.LoadFont(str + "Roboto-Medium.ttf"); ThemeResolutionService.LoadFont(str + "Roboto-Regular.ttf"); ThemeResolutionService.LoadFont(str + "TelerikWebUI.ttf"); ThemeResolutionService.LoadFont(str + "WebComponentsIcons.ttf"); ThemeResolutionService.LoadFont(str + "Awesome-Brands-Regular.ttf"); ThemeResolutionService.LoadFont(str + "Awesome-Regular.ttf"); ThemeResolutionService.LoadFont(str + "Awesome-Solid.ttf"); }
public static int LoadFont(string resourcePath) { return(ThemeResolutionService.LoadFont(Assembly.GetExecutingAssembly().GetManifestResourceStream(resourcePath))); }