Minor fixes for text underline thickness

This commit is contained in:
akiyosi 2025-04-17 21:53:17 +09:00
parent 23fa98a2cc
commit 0f0fa1d7a3
2 changed files with 2 additions and 1 deletions

1
Untitled Normal file
View file

@ -0,0 +1 @@
asdfasdfasdf

View file

@ -3062,7 +3062,7 @@ func drawUnderline(p *gui.QPainter, font *Font, color *gui.QColor, row int, star
}
descent := float64(font.height) - font.ascent
weight := int(math.Ceil(float64(font.height) / 16.0))
weight := int(math.Ceil(float64(font.height) / 18.0))
if weight < 1 {
weight = 1
}