mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[libtxt] Fix the flag used to check validity of the strikeout position in Skia font metrics (#15981)
This commit is contained in:
parent
8ce165b311
commit
a7a7afcfd2
2
third_party/txt/src/txt/paragraph_txt.cc
vendored
2
third_party/txt/src/txt/paragraph_txt.cc
vendored
@ -1538,7 +1538,7 @@ void ParagraphTxt::PaintDecorations(SkCanvas* canvas,
|
||||
kDoubleDecorationSpacing / -2.0;
|
||||
y_offset +=
|
||||
(metrics.fFlags &
|
||||
SkFontMetrics::FontMetricsFlags::kStrikeoutThicknessIsValid_Flag)
|
||||
SkFontMetrics::FontMetricsFlags::kStrikeoutPositionIsValid_Flag)
|
||||
? metrics.fStrikeoutPosition
|
||||
// Backup value if the strikeoutposition metric is not
|
||||
// available:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user