summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/corelib/fpg_base.pas4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/fpg_base.pas b/src/corelib/fpg_base.pas
index b6032caf..80133832 100644
--- a/src/corelib/fpg_base.pas
+++ b/src/corelib/fpg_base.pas
@@ -260,7 +260,7 @@ type
FFontRes: TfpgFontResourceBase;
function GetIsFixedWidth: boolean; virtual;
public
- function TextWidth(const txt: string): integer;
+ function TextWidth(const txt: TfpgString): integer;
function Ascent: integer;
function Descent: integer;
function Height: integer;
@@ -1806,7 +1806,7 @@ begin
Result := False;
end;
-function TfpgFontBase.TextWidth(const txt: string): integer;
+function TfpgFontBase.TextWidth(const txt: TfpgString): integer;
begin
if Length(txt) = 0 then
Result := 0