Index: src/type1/t1objs.c =================================================================== RCS file: /cvsroot/freetype2/src/type1/t1objs.c,v retrieving revision 1.29 diff -u -r1.29 t1objs.c --- t1objs.c 2000/11/09 03:18:32 1.29 +++ t1objs.c 2000/11/19 16:17:11 @@ -257,6 +257,18 @@ root->style_name = (char *)"Regular"; } } + /* compute style flags */ + root->style_flags = 0; + if (face->type1.font_info.italic_angle) + root->style_flags |= FT_STYLE_FLAG_ITALIC; + if (face->type1.font_info.weight) + { + if (!strcmp (face->type1.font_info.weight, "Bold") || + !strcmp (face->type1.font_info.weight, "Black")) + { + root->style_flags |= FT_STYLE_FLAG_BOLD; + } + } /* no embedded bitmap support */ root->num_fixed_sizes = 0;