Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 46a6d96

Browse files
[SkParagraph] Copy text height behavior to the Skia paragraph style (#18178)
1 parent e7ee47d commit 46a6d96

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

third_party/txt/src/skia/paragraph_builder_skia.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ skt::ParagraphStyle TxtToSkia(const ParagraphStyle& txt) {
7575
skia.setTextDirection(static_cast<skt::TextDirection>(txt.text_direction));
7676
skia.setMaxLines(txt.max_lines);
7777
skia.setEllipsis(txt.ellipsis);
78+
skia.setTextHeightBehavior(
79+
static_cast<skt::TextHeightBehavior>(txt.text_height_behavior));
7880

7981
skia.turnHintingOff();
8082

0 commit comments

Comments
 (0)