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; }
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; }