ref: 63cb46dd1a38979f7e51fa964f1042695feea41c
parent: d60389be36aae2b97889f335e0d2654ec2eb85a7
author: David Turner <[email protected]>
date: Tue Feb 22 08:34:26 EST 2000
simple fixes
--- a/demos/Makefile
+++ b/demos/Makefile
@@ -152,7 +152,7 @@
#
# The list of demonstration programs to build.
#
-EXES := ftlint t1dump ftview fttimer
+EXES := ftlint ftview fttimer
ifneq ($(findstring $(PLATFORM),os2 unix),)
EXES += ttdebug
--- a/demos/src/ttdebug.c
+++ b/demos/src/ttdebug.c
@@ -815,8 +815,8 @@
TT_Error error = 0;
- TT_GlyphZone save;
- TT_GlyphZone pts;
+ FT_GlyphZone save;
+ FT_GlyphZone pts;
const FT_String* round_str[8] =
{
@@ -847,7 +847,7 @@
save.n_points );
save.cur = (TT_Vector*)malloc( 2 * sizeof( TT_F26Dot6 ) *
save.n_points );
- save.touch = (TT_Byte*)malloc( save.n_points );
+ save.flags = (TT_Byte*)malloc( save.n_points );
exc->instruction_trap = 1;
@@ -998,7 +998,7 @@
MEM_Copy( save.org, pts.org, pts.n_points * sizeof ( TT_Vector ) );
MEM_Copy( save.cur, pts.cur, pts.n_points * sizeof ( TT_Vector ) );
- MEM_Copy( save.touch, pts.touch, pts.n_points );
+ MEM_Copy( save.flags, pts.flags, pts.n_points );
/* a return indicate the last command */
if (ch == '\r')
@@ -1052,7 +1052,7 @@
if ( save.org[A].y != pts.org[A].y ) diff |= 2;
if ( save.cur[A].x != pts.cur[A].x ) diff |= 4;
if ( save.cur[A].y != pts.cur[A].y ) diff |= 8;
- if ( save.touch[A] != pts.touch[A] ) diff |= 16;
+ if ( save.flags[A] != pts.flags[A] ) diff |= 16;
if ( diff )
{
@@ -1059,7 +1059,7 @@
printf( "%02hx ", A );
if ( diff & 16 ) temp = "(%01hx)"; else temp = " %01hx ";
- printf( temp, save.touch[A] & 7 );
+ printf( temp, save.flags[A] & 7 );
if ( diff & 1 ) temp = "(%08lx)"; else temp = " %08lx ";
printf( temp, save.org[A].x );
@@ -1078,7 +1078,7 @@
printf( "%02hx ", A );
if ( diff & 16 ) temp = "[%01hx]"; else temp = " %01hx ";
- printf( temp, pts.touch[A] & 7 );
+ printf( temp, pts.flags[A] & 7 );
if ( diff & 1 ) temp = "[%08lx]"; else temp = " %08lx ";
printf( temp, pts.org[A].x );
--- a/src/sfnt/ttpost.c
+++ b/src/sfnt/ttpost.c
@@ -34,7 +34,6 @@
/* When this configuration macro is defined, we rely on the "psnames" */
/* module to grab the glyph names.. */
#ifdef FT_CONFIG_OPTION_POSTSCRIPT_NAMES
-
#include <psnames.h>
#define MAC_NAME(x) ((TT_String*)psnames->macintosh_name(x))
@@ -48,7 +47,7 @@
/* the 258 default Mac PS glyph names */
- String* TT_Post_Default_Names[258] =
+ FT_String* TT_Post_Default_Names[258] =
{
/* 0 */
".notdef", ".null", "CR", "space", "exclam",
@@ -411,8 +410,9 @@
{
TT_Error error;
TT_Post_Names* names;
+#ifdef FT_CONFIG_OPTION_POSTSCRIPT_NAMES
PSNames_Interface* psnames;
-
+#endif
if ( !face )
return TT_Err_Invalid_Face_Handle;
@@ -419,10 +419,12 @@
if ( index >= (TT_UInt)face->root.num_glyphs )
return TT_Err_Invalid_Glyph_Index;
+#ifdef FT_CONFIG_OPTION_POSTSCRIPT_NAMES
psnames = (PSNames_Interface*)face->psnames;
if (!psnames)
return TT_Err_Unimplemented_Feature;
-
+#endif
+
names = &face->postscript_names;
/* `.notdef' by default */