* builds/ansi/ansi.mk: Fix inclusion order of files.
* src/type1/t1objs.c (T1_Init_Face): Compute style flags.
diff --git a/ChangeLog b/ChangeLog
index 3f23f5a..7d19ff7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2000-11-26 Werner Lemberg <wl@gnu.org>
+ * builds/ansi/ansi.mk: Fix inclusion order of files.
+
+2000-11-26 Keith Packard <keithp@keithp.com>
+
+ * src/type1/t1objs.c (T1_Init_Face): Compute style flags.
+
+2000-11-26 Werner Lemberg <wl@gnu.org>
+
* builds/compiler/ansi-cc.mk (CLEAN_LIBRARY): Fix rule and
conditional.
diff --git a/builds/ansi/ansi.mk b/builds/ansi/ansi.mk
index 92cbadf..04d90ca 100644
--- a/builds/ansi/ansi.mk
+++ b/builds/ansi/ansi.mk
@@ -13,7 +13,7 @@
# fully.
-include $(TOP)/builds/ansi/ansi-def.mk
include $(TOP)/builds/compiler/ansi-cc.mk
+include $(TOP)/builds/ansi/ansi-def.mk
# EOF
diff --git a/src/type1/t1objs.c b/src/type1/t1objs.c
index fa990c2..65c3344 100644
--- a/src/type1/t1objs.c
+++ b/src/type1/t1objs.c
@@ -19,6 +19,8 @@
#include <freetype/internal/ftdebug.h>
#include <freetype/internal/ftstream.h>
+#include <string.h> /* strcmp() */
+
#ifdef FT_FLAT_COMPILE
@@ -258,6 +260,17 @@
}
}
+ /* 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;
root->available_sizes = 0;