iTextSharp.text.pdf.parser.GraphicsState.GetFont C# (CSharp) Метод

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

public GetFont ( ) : CMapAwareDocumentFont
Результат CMapAwareDocumentFont
        public CMapAwareDocumentFont GetFont()
        {
            return font;
        }

Usage Example

Пример #1
0
        /**
         * Gets the ascentline for the text (i.e. the line that represents the topmost extent that a string of the current font could have)
         * This value includes the Rise of the draw operation - see {@link #getRise()} for the amount added by Rise
         * @return the ascentline line segment
         * @since 5.0.2
         */
        virtual public LineSegment GetAscentLine()
        {
            float ascent = gs.GetFont().GetFontDescriptor(BaseFont.ASCENT, gs.GetFontSize());

            return(GetUnscaledBaselineWithOffset(ascent + gs.rise).TransformBy(textToUserSpaceTransformMatrix));
        }