Esempio n. 1
0
        public void skipGlyph(int advance, short lsbDelta, short rsbDelta)
        {
            glyphLayout.adjustPosition(lsbDelta, rsbDelta);
            glyphLayout.advance(advance);

            // Reset the first char position
            firstCharacterInWord = int.MinValue;
            eBreakAction ba = lineBreaker.whitespace();

            if (ba == eBreakAction.LineFeed)
            {
                glyphLayout.newLine(0, lineHeight, false);
            }
        }
Esempio n. 2
0
        public void skipGlyph(int advance, short lsbDelta, short rsbDelta)
        {
            glyphLayout.adjustPosition(lsbDelta, rsbDelta);
            glyphLayout.advance(advance);

            // Space character. If the buffer has some glyphs, copy them to the destination.
            copyTempBuffer();
            // Also reset the first char position
            firstCharacterInWord = int.MinValue;
            eBreakAction ba = lineBreaker.whitespace();

            if (ba == eBreakAction.LineFeed)
            {
                glyphLayout.newLine(rectangle.left, lineHeight, false);
            }
        }