LazUtils: Fixed wrong offsets in free type font subclips. Issue #35036. Patch from Ondrej Pokorny

git-svn-id: trunk@60362 -
This commit is contained in:
michl 2019-02-07 22:30:29 +00:00
parent 05aa1b08f9
commit 2035539759

View File

@ -1003,13 +1003,13 @@ const
if new_flags and ARGS_ARE_WORDS <> 0 then if new_flags and ARGS_ARE_WORDS <> 0 then
begin begin
k := ftstream.Get_Short; k := SmallInt(ftstream.Get_Short);
l := ftstream.Get_Short; l := SmallInt(ftstream.Get_Short);
end end
else else
begin begin
k := ftstream.Get_Byte; k := ShortInt(ftstream.Get_Byte);
l := ftstream.Get_Byte; l := ShortInt(ftstream.Get_Byte);
end; end;
subglyph^.arg1 := k; subglyph^.arg1 := k;