From 1d39a58dacf11032964d63b3a2c941a4c679e7d8 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Wed, 6 May 2020 11:58:43 -0700 Subject: [PATCH] [SkParagraph] Copy text height behavior to the Skia paragraph style --- third_party/txt/src/skia/paragraph_builder_skia.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/third_party/txt/src/skia/paragraph_builder_skia.cc b/third_party/txt/src/skia/paragraph_builder_skia.cc index 1b3dedb5474c1..d619697de6ef5 100644 --- a/third_party/txt/src/skia/paragraph_builder_skia.cc +++ b/third_party/txt/src/skia/paragraph_builder_skia.cc @@ -75,6 +75,8 @@ skt::ParagraphStyle TxtToSkia(const ParagraphStyle& txt) { skia.setTextDirection(static_cast(txt.text_direction)); skia.setMaxLines(txt.max_lines); skia.setEllipsis(txt.ellipsis); + skia.setTextHeightBehavior( + static_cast(txt.text_height_behavior)); skia.turnHintingOff();