Skip to content

Commit

Permalink
Fixed a bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Kassebaum committed Jul 18, 2016
1 parent ac64391 commit cb9647a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PdfFonts.pas
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ function TPdfType1Font.GetCharWidth(AText: string; APos: integer): integer;
var
lDefaultWidth: Word;
begin
if not FArray.TryGetValue(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.)
Expand Down

0 comments on commit cb9647a

Please sign in to comment.