mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-02 02:49:32 +01:00
+ initialize CharWidth with default function
This commit is contained in:
parent
a95323c9cd
commit
68d53805db
@ -140,7 +140,7 @@ var
|
||||
begin
|
||||
Result := 0;
|
||||
Count := Length(Src);
|
||||
while (Count>0) do
|
||||
while (Count > 0) do
|
||||
begin
|
||||
Result += CharWidth(Src[Count], FontInfoPtr);
|
||||
Count -= 1;
|
||||
@ -349,5 +349,9 @@ begin
|
||||
Result[vp] := Src[v2lSrc[vp]];
|
||||
end;
|
||||
|
||||
initialization
|
||||
|
||||
CharWidth := @DefaultCharWidth;
|
||||
|
||||
end.
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user