ref: 0515c09637c979c11a74df1cd78412c5c3e3fdd6
parent: f41e71a199011bb01a42c83fb29429d77167b969
author: David Turner <[email protected]>
date: Thu Dec 20 23:16:42 EST 2001
* src/pshinter/pshglob.c (psh_globals_new): replaced a floating point constant with a fixed-float equivalent. For some reason, some compilers aren't capable of directly computing a floating pointer constant casted to FT_Fixed, and will link a math library instead !!
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2001-12-21 David Turner <[email protected]>
+
+ * src/pshinter/pshglob.c (psh_globals_new): replaced a floating point
+ constant with a fixed-float equivalent. For some reason, some compilers
+ aren't capable of directly computing a floating pointer constant casted
+ to FT_Fixed, and will link a math library instead !!
+
+
2001-12-20 Werner Lemberg <[email protected]>
* src/cache/ftccache.c (ftc_node_destroy, ftc_cache_lookup): Fix
--- a/include/freetype/config/ftoption.h
+++ b/include/freetype/config/ftoption.h
@@ -249,8 +249,8 @@
/* */
/* Don't define any of these macros to compile in `release' mode! */
/* */
-#undef FT_DEBUG_LEVEL_ERROR
-#undef FT_DEBUG_LEVEL_TRACE
+#define FT_DEBUG_LEVEL_ERROR
+#define FT_DEBUG_LEVEL_TRACE
/*************************************************************************/
@@ -265,7 +265,7 @@
/* Note that the memory debugger is only activated at runtime when */
/* when the _environment_ variable "FT_DEBUG_MEMORY" is also defined! */
/* */
-#undef FT_DEBUG_MEMORY
+#define FT_DEBUG_MEMORY
/*************************************************************************/
--- a/src/pshinter/pshglob.c
+++ b/src/pshinter/pshglob.c
@@ -643,11 +643,13 @@
priv->family_blues, priv->num_family_other_blues,
priv->family_other_blues, priv->blue_fuzz, 1 );
- globals->blues.blue_scale = priv->blue_scale ? priv->blue_scale
- : ( 0.039625 * 0x400000L );
+ globals->blues.blue_scale = priv->blue_scale
+ ? priv->blue_scale
+ : 0x28937L; /* ( 0.039625 * 0x400000L ) !! */
- globals->blues.blue_shift = priv->blue_shift ? priv->blue_shift
- : 7;
+ globals->blues.blue_shift = priv->blue_shift
+ ? priv->blue_shift
+ : 7;
globals->dimension[0].scale_mult = 0;
globals->dimension[0].scale_delta = 0;