* 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).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
diff --git a/ChangeLog b/ChangeLog
index aebc722..0397d11 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
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*,
whereas `design_points' is FT_Long*. Therefore, return blend rather
than design points.
diff --git a/src/type1/t1load.c b/src/type1/t1load.c
index 7a98302..ccd17f3 100644
--- a/src/type1/t1load.c
+++ b/src/type1/t1load.c
@@ -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] );
}