iTextSharp.text.pdf.CJKFont.GetFontDescriptor C# (CSharp) Метод

GetFontDescriptor() публичный Метод

public GetFontDescriptor ( int key, float fontSize ) : float
key int
fontSize float
Результат float
        public override float GetFontDescriptor(int key, float fontSize)
        {
            switch (key) {
                case AWT_ASCENT:
                case ASCENT:
                    return GetDescNumber("Ascent") * fontSize / 1000;
                case CAPHEIGHT:
                    return GetDescNumber("CapHeight") * fontSize / 1000;
                case AWT_DESCENT:
                case DESCENT:
                    return GetDescNumber("Descent") * fontSize / 1000;
                case ITALICANGLE:
                    return GetDescNumber("ItalicAngle");
                case BBOXLLX:
                    return fontSize * GetBBox(0) / 1000;
                case BBOXLLY:
                    return fontSize * GetBBox(1) / 1000;
                case BBOXURX:
                    return fontSize * GetBBox(2) / 1000;
                case BBOXURY:
                    return fontSize * GetBBox(3) / 1000;
                case AWT_LEADING:
                    return 0;
                case AWT_MAXADVANCE:
                    return fontSize * (GetBBox(2) - GetBBox(0)) / 1000;
            }
            return 0;
        }

Same methods

CJKFont::GetFontDescriptor ( ) : PdfDictionary