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

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

public static GetFullFontName ( string name, string encoding, byte ttfAfm ) : string[][]
name string
encoding string
ttfAfm byte
Результат string[][]
        public static string[][] GetFullFontName(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 fontBuilt.FullFontName;
        }