public IFont LoadFont(string fontFamily, float sizeInPoints, API.FontStyle style)
        {
            if (fontFamily == null)
            {
                return(new DesktopFont(new Font(SystemFonts.DefaultFont.FontFamily.Name, sizeInPoints, style.Convert()), this, null));
            }
            var family = _familyLoader.SearchByName(fontFamily);

            if (family != null)
            {
                return(new DesktopFont(new Font(family, sizeInPoints, style.Convert()), this, null));
            }
            return(new DesktopFont(new Font(fontFamily, sizeInPoints, style.Convert()), this, null));
        }
 public IFont LoadFontFromPath(string path, float sizeInPoints, API.FontStyle style)
 {
     return(new DesktopFont(new Font(_familyLoader.LoadFontFamily(path), sizeInPoints, style.Convert()), this, path));
 }