From 5413644b5e296b705377eebdf3cda12f95718912 Mon Sep 17 00:00:00 2001 From: David Turner Date: Fri, 26 May 2000 17:52:06 +0000 Subject: [PATCH] added a new demonstration program called "ftmulti" to demonstrate the multiple masters support fixed a few bugs --- demos/Makefile | 8 +++++++- src/type1z/t1objs.c | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/demos/Makefile b/demos/Makefile index 8d3ce7f32..b06623b2a 100644 --- a/demos/Makefile +++ b/demos/Makefile @@ -160,7 +160,7 @@ else # # The list of demonstration programs to build. # - EXES := ftlint ftview fttimer compos ftstring memtest + EXES := ftlint ftview fttimer compos ftstring memtest ftmulti ifneq ($(findstring $(PLATFORM),os2 unix win32),) EXES += ttdebug @@ -200,6 +200,9 @@ else $(OBJ_)ftview.$O: $(SRC_DIR_)ftview.c $(GRAPH_LIB) $(COMPILE) $(GRAPH_INCLUDES:%=$I%) $T$@ $< + $(OBJ_)ftmulti.$O: $(SRC_DIR_)ftmulti.c $(GRAPH_LIB) + $(COMPILE) $(GRAPH_INCLUDES:%=$I%) $T$@ $< + $(OBJ_)ftstring.$O: $(SRC_DIR_)ftstring.c $(GRAPH_LIB) $(COMPILE) $(GRAPH_INCLUDES:%=$I%) $T$@ $< @@ -268,6 +271,9 @@ else $(BIN_)ftview$E: $(OBJ_)ftview.$O $(FTLIB) $(GRAPH_LIB) $(COMMON_OBJ) $(GRAPH_LINK) + $(BIN_)ftmulti$E: $(OBJ_)ftmulti.$O $(FTLIB) $(GRAPH_LIB) $(COMMON_OBJ) + $(GRAPH_LINK) + $(BIN_)ftstring$E: $(OBJ_)ftstring.$O $(FTLIB) $(GRAPH_LIB) $(COMMON_OBJ) $(GRAPH_LINK) diff --git a/src/type1z/t1objs.c b/src/type1z/t1objs.c index 46327511c..48ac8cf21 100644 --- a/src/type1z/t1objs.c +++ b/src/type1z/t1objs.c @@ -264,6 +264,9 @@ if ( face->type1.font_info.is_fixed_pitch ) root->face_flags |= FT_FACE_FLAG_FIXED_WIDTH; + if ( face->blend ) + root->face_flags |= FT_FACE_FLAG_MULTIPLE_MASTERS; + /* XXX : TO DO - add kerning with .afm support */ /* get style name - be careful, some broken fonts only */