mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 07:58:07 +02:00
lcl/win32: Fix of disappearing underline of CourierNew text for some font sizes. Issue #39472.
This commit is contained in:
parent
c152361b72
commit
c5fae8fdd1
@ -1167,6 +1167,13 @@ begin
|
||||
Rect.Right := Rect.Right + Abs(aABC.abcC);
|
||||
|
||||
end;
|
||||
|
||||
// Sometimes the underline does not appear for some sizes.
|
||||
// A workaround is to move the bottom edge of the rect down by one pixel.
|
||||
// https://forum.lazarus.freepascal.org/index.php/topic,57021.msg424606.html#msg424606
|
||||
if lf.lfUnderline <> 0 then
|
||||
inc(Rect.Bottom);
|
||||
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user