summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/corelib/x11/fpg_x11.pas3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/corelib/x11/fpg_x11.pas b/src/corelib/x11/fpg_x11.pas
index 046b2f74..20974dfe 100644
--- a/src/corelib/x11/fpg_x11.pas
+++ b/src/corelib/x11/fpg_x11.pas
@@ -2694,8 +2694,7 @@ end;
function TfpgX11FontResource.GetHeight: integer;
begin
- // Do NOT use FFontData^.height as it isn't as accurate
- Result := GetAscent + GetDescent;
+ Result := FFontData^.Height;
end;
function TfpgX11FontResource.GetTextWidth(const txt: string): integer;