iTextSharp.text.pdf.parser.TextRenderInfo.GetUnscaledBaselineWithOffset C# (CSharp) Method

GetUnscaledBaselineWithOffset() private method

private GetUnscaledBaselineWithOffset ( float yOffset ) : LineSegment
yOffset float
return LineSegment
        private LineSegment GetUnscaledBaselineWithOffset(float yOffset)
        {
            // we need to correct the width so we don't have an extra character spacing value at the end.  The extra character space is important for tracking relative text coordinate systems, but should not be part of the baseline
            float correctedUnscaledWidth = GetUnscaledWidth() - gs.characterSpacing * gs.horizontalScaling;

            return new LineSegment(new Vector(0, yOffset, 1), new Vector(correctedUnscaledWidth, yOffset, 1));
        }