* builds/ansi/ansi.mk: Fix inclusion order of files.
* src/type1/t1objs.c (T1_Init_Face): Compute style flags.
This commit is contained in:
parent
d1e9249b63
commit
6dd303db0d
@ -1,3 +1,11 @@
|
||||
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
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user