public void Add(IDrawableSegment segment, FontTool fontTool, BackgroundTool backgroundTool) { if (_textLines.Last().Width + segment.Width > _maxWidth) { _spaces.Clear(); NewLine(fontTool, backgroundTool); _textLines.Last().Add(segment); } else { _textLines.Last().Add(_spaces); _spaces.Clear(); _textLines.Last().Add(segment); } }
public void Add(IDrawableSegment segment) => _segments.Add(segment);
public void AddSpace(IDrawableSegment space) => _spaces.Add(space);