public WinGdiFontFace(RequestFont f) { this.style = f.Style; //resolve InstalledFont foundInstalledFont = s_fontLoader.GetFont(f.Name, style.ConvToInstalledFontStyle()); //TODO: review this.nopenTypeFontFace = OpenFontLoader.LoadFont(foundInstalledFont.FontPath); }
public WinGdiFontFace(RequestFont f) { _style = f.Style; //resolve InstalledTypeface foundInstalledFont = s_installedTypefaceProvider.GetInstalledTypeface(f.Name, _style.ConvToInstalledFontStyle()); //TODO: review if (foundInstalledFont == null) { //not found } _nopenTypeFontFace = OpenFontLoader.LoadFont(foundInstalledFont.FontPath); }