예제 #1
0
        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);
        }
예제 #2
0
 public static FontFace LoadFont(string fontfile, string lang, HBDirection direction, int defaultScriptCode = 0)
 {
     return(LoadFont(FontPreview.GetFontDetails(fontfile), lang, direction, defaultScriptCode));
 }