浏览代码

Split populateGlyphLines function from computeLineOffset.

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

11
Runtime/ui/txt/paragraph.cs


maxWordWidth = tMaxWordWidth;
}
this._computeLineOffset(lineNumber, paintRecords, ref yOffset, ref preMaxDescent);
this._computeLineOffset(lineNumber, lineGlyphPositions, paintRecords, ref yOffset, ref preMaxDescent);
this._populateGlyphLines(lineNumber, lineGlyphPositions);
this._addPaintRecordsWithOffset(paintRecords, lineXOffset, yOffset);
}

}
}
void _computeLineOffset(int lineNumber,
GlyphPosition[] lineGlyphPositions,
PaintRecord[] paintRecords,
ref float yOffset, ref float preMaxDescent) {
void _populateGlyphLines(int lineNumber, GlyphPosition[] lineGlyphPositions) {
}
void _computeLineOffset(int lineNumber, PaintRecord[] paintRecords, ref float yOffset, ref float preMaxDescent) {
float maxLineSpacing = 0;
float maxDescent = 0;

正在加载...
取消
保存