diff --git a/PdfFonts.pas b/PdfFonts.pas index 1e73216..2fb7b2d 100644 --- a/PdfFonts.pas +++ b/PdfFonts.pas @@ -584,7 +584,7 @@ function TPdfType1Font.GetCharWidth(AText: string; APos: integer): integer; var lDefaultWidth: Word; begin - if not FArray.TryGetValue(Ord(AText[APos], Result) then + if not FArray.TryGetValue(Ord(AText[APos]), Result) then begin // initialize char widths array by default value (if missing width parameter // is defined, use it as default value.)