浏览代码

Fix line justification bug.

/main
Yuncong Zhang 5 年前
当前提交
481140c0
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 5
      Runtime/ui/txt/paragraph.cs

5
Runtime/ui/txt/paragraph.cs


// Break the line into words if justification should be applied.
bool justifyLine = this._paragraphStyle.textAlign == TextAlign.justify &&
lineNumber != lineLimit - 1 && !lineRange.hardBreak;
this._findWords(lineRange.start, lineRange.end, words);
this._findWords(lineRange.start, lineRange.end, words);
this._computeLineStyleRuns(lineStyleRuns, lineRange, ref styleRunIndex);
for (int lineStyleRunIndex = 0; lineStyleRunIndex < lineStyleRuns.Count; ++lineStyleRunIndex) {
glyphPositions.Clear();

正在加载...
取消
保存