Exemplo n.º 1
0
        public MeasureBlock(int breakWidth, int lineHeight)
        {
            glyphLayout     = new GlyphLayout(new CPoint());
            this.lineHeight = (ushort)lineHeight;
            lineBreaker     = new LineBreaker(breakWidth);
            maxY            = maxLineWidth = 0;

            firstCharacterInWord = int.MinValue;
        }
Exemplo n.º 2
0
        public LeftAlignedBlock(Span <sVertexWithId> destSpan, CRect rectangle, int lineHeight, uint id)
        {
            this.rectangle    = rectangle;
            glyphLayout       = new GlyphLayout(rectangle.topLeft);
            lineStartPosition = glyphLayout.currentPositionPixels;
            lineBreaker       = new LineBreaker(rectangle.right);
            this.lineHeight   = (ushort)lineHeight;
            this.id           = id;
            buffer            = LineBuffer.instance;
            buffer.clear();

            firstCharacterInWord = int.MinValue;

            finalDestSpan = destSpan;
            destOffset    = 0;
        }