未验证 提交 3860a433 编写于 作者: G Gary Qian 提交者: GitHub

Re-revert wrong line_heights implementation (#6598)

上级 09dcc3d5
......@@ -732,9 +732,9 @@ void Paragraph::Layout(double width, bool force) {
auto update_line_metrics = [&](const SkPaint::FontMetrics& metrics,
const TextStyle& style) {
double line_spacing =
(line_number == 0) ? -metrics.fAscent * style.height
: (-metrics.fAscent + metrics.fLeading) *
style.height * paragraph_style_.line_height;
(line_number == 0)
? -metrics.fAscent * style.height
: (-metrics.fAscent + metrics.fLeading) * style.height;
if (line_spacing > max_line_spacing) {
max_line_spacing = line_spacing;
if (line_number == 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册