iTextSharp.text.pdf.BaseFont.GetAllFontNames C# (CSharp) Метод

GetAllFontNames() публичный статический Метод

public static GetAllFontNames ( String name, String encoding, byte ttfAfm ) : Object[]
name String
encoding String
ttfAfm byte
Результат Object[]
        public static Object[] GetAllFontNames(String name, String encoding, byte[] ttfAfm)
        {
            String nameBase = GetBaseName(name);
            BaseFont fontBuilt = null;
            if (nameBase.ToLower(System.Globalization.CultureInfo.InvariantCulture).EndsWith(".ttf") || nameBase.ToLower(System.Globalization.CultureInfo.InvariantCulture).EndsWith(".otf") || nameBase.ToLower(System.Globalization.CultureInfo.InvariantCulture).IndexOf(".ttc,") > 0)
                fontBuilt = new TrueTypeFont(name, CP1252, false, ttfAfm, true, false);
            else
                fontBuilt = CreateFont(name, encoding, false, false, ttfAfm, null);
            return new Object[]{fontBuilt.PostscriptFontName, fontBuilt.FamilyFontName, fontBuilt.FullFontName};
        }