* src/type/t1load.c (mm_axis_unmap): Revert previous patch and fix

it correctly by using FT_INT_TO_FIXED (FreeType expects 16.16 values
in the /BlendDesignMap space).
This commit is contained in:
Werner Lemberg 2008-11-29 17:35:58 +00:00
parent b2cb6ce6c4
commit 8f9b7f50a5
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2008-11-29 James Cloos <cloos@jhcloos.com>
* src/type/t1load.c (mm_axis_unmap): Revert previous patch and fix
it correctly by using FT_INT_TO_FIXED (FreeType expects 16.16 values
in the /BlendDesignMap space).
2008-11-29 James Cloos <cloos@jhcloos.com>
* src/type1/t1load.c (mm_axis_unmap): `blend_points' is FT_Fixed*,

View File

@ -230,7 +230,7 @@
if ( ncv <= axismap->blend_points[0] )
return axismap->blend_points[0];
return FT_INT_TO_FIXED( axismap->design_points[0] );
for ( j = 1; j < axismap->num_points; ++j )
{
@ -249,7 +249,7 @@
}
}
return axismap->blend_points[axismap->num_points - 1];
return FT_INT_TO_FIXED( axismap->design_points[axismap->num_points - 1] );
}