Index: src/cid/cidobjs.c =================================================================== RCS file: /cvs/freetype/freetype2/src/cid/cidobjs.c,v retrieving revision 1.54 diff -u -p -r1.54 cidobjs.c --- cidobjs.c 2002/09/05 15:10:52 1.54 +++ cidobjs.c 2003/04/03 21:30:29 @@ -361,8 +361,10 @@ full++; } - root->style_name = ( *full == ' ' ) ? full + 1 - : (char *)"Regular"; + if ( *full == ' ' || *full == '-' ) + root->style_name = full + 1; + else + root->style_name = (char *)"Regular"; } else { Index: src/type1/t1objs.c =================================================================== RCS file: /cvs/freetype/freetype2/src/type1/t1objs.c,v retrieving revision 1.75 diff -u -p -r1.75 t1objs.c --- t1objs.c 2002/08/27 20:20:29 1.75 +++ t1objs.c 2003/04/03 21:30:29 @@ -357,8 +357,10 @@ full++; } - root->style_name = ( *full == ' ' ? full + 1 - : (char *)"Regular" ); + if ( *full == ' ' || *full == '-' ) + root->style_name = full + 1; + else + root->style_name = (char *)"Regular"; } else root->style_name = (char *)"Regular"; Index: src/type42/t42objs.c =================================================================== RCS file: /cvs/freetype/freetype2/src/type42/t42objs.c,v retrieving revision 1.11 diff -u -p -r1.11 t42objs.c --- t42objs.c 2003/03/20 07:04:40 1.11 +++ t42objs.c 2003/04/03 21:30:29 @@ -223,8 +223,10 @@ full++; } - root->style_name = ( *full == ' ' ? full + 1 - : (char *)"Regular" ); + if ( *full == ' ' || *full == '-' ) + root->style_name = full + 1; + else + root->style_name = (char *)"Regular"; } else root->style_name = (char *)"Regular";