Skip to content

Commit

Permalink
Create fix_text_underline_position_by_changing_fallback_value.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcinZiabek authored Nov 19, 2024
1 parent cdcdf20 commit d0390fd
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/modules/skparagraph/src/Decorations.cpp b/modules/skparagraph/src/Decorations.cpp
index 4239b52316..79d428c921 100644
--- a/modules/skparagraph/src/Decorations.cpp
+++ b/modules/skparagraph/src/Decorations.cpp
@@ -165,7 +165,7 @@ void Decorations::calculatePosition(TextDecoration decoration, SkScalar ascent)
fFontMetrics.fUnderlinePosition > 0) {
fPosition = fFontMetrics.fUnderlinePosition;
} else {
- fPosition = fThickness;
+ fPosition = fFontMetrics.fXHeight / 4;
}
fPosition -= ascent;
break;

0 comments on commit d0390fd

Please sign in to comment.