public static List <InstalledFont> ReadPreviewFontData(IEnumerable <string> getFontFileIter) { //------------------------------------------------- //TODO: review here, this is not platform depend //------------------------------------------------- //check if MAC or linux font folder too //------------------------------------------------- List <InstalledFont> installedFonts = new List <InstalledFont>(); foreach (string fontFilename in getFontFileIter) { InstalledFont installedFont = FontPreview.GetFontDetails(fontFilename); installedFonts.Add(installedFont); } return(installedFonts); }
public static FontFace LoadFont(string fontfile, string lang, HBDirection direction, int defaultScriptCode = 0) { return(LoadFont(FontPreview.GetFontDetails(fontfile), lang, direction, defaultScriptCode)); }