diff options
author | Werner Lemberg <wl@gnu.org> | 2002-05-28 22:38:05 +0000 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2002-05-28 22:38:05 +0000 |
commit | 02d4d59ac03aa79cafca124db6aa29030e6df55d (patch) | |
tree | ecd9551272b78a7cd840a79b642355ad8f73f739 /builds/amiga | |
parent | 2a4fa1340e9bd585b61d8b0cad4c24fa1cb38682 (diff) | |
download | freetype2-02d4d59ac03aa79cafca124db6aa29030e6df55d.tar.gz |
* builds/amiga/makefile, builds/amiga/smakefile,
amiga/include/freetype/config/ftmodule.h: Updated to include
support for BDF and Type42 drivers.
* docs/modules.txt: Updated.
* src/bdf/bdflib.c (_bdf_parse_glyphs): Replace floating point math
with calls to `FT_MulDiv'.
Diffstat (limited to 'builds/amiga')
-rw-r--r-- | builds/amiga/include/freetype/config/ftmodule.h | 23 | ||||
-rw-r--r-- | builds/amiga/makefile | 46 | ||||
-rw-r--r-- | builds/amiga/smakefile | 58 |
3 files changed, 89 insertions, 38 deletions
diff --git a/builds/amiga/include/freetype/config/ftmodule.h b/builds/amiga/include/freetype/config/ftmodule.h index e93f1ce33..6cdb81f18 100644 --- a/builds/amiga/include/freetype/config/ftmodule.h +++ b/builds/amiga/include/freetype/config/ftmodule.h @@ -7,9 +7,12 @@ //#define FT_USE_SMOOTH // anti-aliasing rasterizer //#define FT_USE_TT // truetype font driver //#define FT_USE_T1 // type1 font driver -//#define FT_USE_T1CID // cid-keyed type1 font driver // no cmap support, useless -//#define FT_USE_CFF // opentype font driver // does not work with TektonPro +//#define FT_USE_T42 // type42 font driver // yet unstable +//#define FT_USE_T1CID // cid-keyed type1 font driver // no cmap support +//#define FT_USE_CFF // opentype font driver +//#define FT_USE_BDF // bdf bitmap font driver //#define FT_USE_PCF // pcf bitmap font driver +//#define FT_USE_PFR // pfr font driver //#define FT_USE_WINFNT // windows .fnt|.fon bitmap font driver #include "FT:src/base/ftinit.c" */ @@ -17,6 +20,10 @@ // TetiSoft: make sure that needed support modules are built in. // Dependencies can be found by searching for FT_Get_Module. +#ifdef FT_USE_T42 +#define FT_USE_TT +#endif + #ifdef FT_USE_TT #define FT_USE_SFNT #endif @@ -65,10 +72,18 @@ FT_USE_MODULE(cff_driver_class) FT_USE_MODULE(t1cid_driver_class) #endif +#ifdef FT_USE_BDF +FT_USE_MODULE(bdf_driver_class) +#endif + #ifdef FT_USE_PCF FT_USE_MODULE(pcf_driver_class) #endif +#ifdef FT_USE_PFR +FT_USE_MODULE(pfr_driver_class) +#endif + #ifdef FT_USE_PSAUX FT_USE_MODULE(psaux_module_class) #endif @@ -97,6 +112,10 @@ FT_USE_MODULE(tt_driver_class) FT_USE_MODULE(t1_driver_class) #endif +#ifdef FT_USE_T42 +FT_USE_MODULE(t42_driver_class) +#endif + #ifdef FT_USE_WINFNT FT_USE_MODULE(winfnt_driver_class) #endif diff --git a/builds/amiga/makefile b/builds/amiga/makefile index 8846c667f..7ca9ca70c 100644 --- a/builds/amiga/makefile +++ b/builds/amiga/makefile @@ -11,15 +11,18 @@ # Your programs source code should start with this # (uncomment the parts you do not need to keep the program small): # ---8<--- -#define FT_USE_AUTOHINT // autohinter -#define FT_USE_RASTER // monochrome rasterizer -#define FT_USE_SMOOTH // anti-aliasing rasterizer -#define FT_USE_TT // truetype font driver -#define FT_USE_T1 // type1 font driver -#define FT_USE_T1CID // cid-keyed type1 font driver -#define FT_USE_CFF // opentype font driver -#define FT_USE_PCF // pcf bitmap font driver -#define FT_USE_WINFNT // windows .fnt|.fon bitmap font driver +#define FT_USE_AUTOHINT // autohinter +#define FT_USE_RASTER // monochrome rasterizer +#define FT_USE_SMOOTH // anti-aliasing rasterizer +#define FT_USE_TT // truetype font driver +#define FT_USE_T1 // type1 font driver +#define FT_USE_T42 // type42 font driver +#define FT_USE_T1CID // cid-keyed type1 font driver +#define FT_USE_CFF // opentype font driver +#define FT_USE_BDF // bdf bitmap font driver +#define FT_USE_PCF // pcf bitmap font driver +#define FT_USE_PFR // pfr font driver +#define FT_USE_WINFNT // windows .fnt|.fon bitmap font driver #include "FT:src/base/ftinit.c" # ---8<--- # @@ -151,15 +154,21 @@ type1.ppc.o: $(FTSRC)/type1/type1.c $(CC) -c $(CFLAGS) -o $@ $< # +# FreeType2 library Type42 font driver +# +type42.ppc.o: $(FTSRC)/type42/t42drivr.c + $(CC) -c $(CFLAGS) -o $@ $< + +# # FreeType2 library CID-keyed Type1 font driver # type1cid.ppc.o: $(FTSRC)/cid/type1cid.c $(CC) -c $(CFLAGS) -o $@ $< # -# FreeType2 library Windows FNT/FON bitmap font driver +# FreeType2 library BDF bitmap font driver # -winfnt.ppc.o: $(FTSRC)/winfonts/winfnt.c +bdf.ppc.o: $(FTSRC)/bdf/bdf.c $(CC) -c $(CFLAGS) -o $@ $< # @@ -168,6 +177,18 @@ winfnt.ppc.o: $(FTSRC)/winfonts/winfnt.c pcf.ppc.o: $(FTSRC)/pcf/pcf.c $(CC) -c $(CFLAGS) -o $@ $< +# +# FreeType2 library PFR font driver +# +pfr.ppc.o: $(FTSRC)/pfr/pfr.c + $(CC) -c $(CFLAGS) -o $@ $< + +# +# FreeType2 library Windows FNT/FON bitmap font driver +# +winfnt.ppc.o: $(FTSRC)/winfonts/winfnt.c + $(CC) -c $(CFLAGS) -o $@ $< + BASEPPC = ftbase.ppc.o ftglyph.ppc.o ftbbox.ppc.o ftmm.ppc.o ftsynth.ppc.o DEBUGPPC = ftdebug.ppc.o ftdebugpure.ppc.o @@ -178,7 +199,8 @@ PSPPC = psaux.ppc.o psnames.ppc.o pshinter.ppc.o RASTERPPC = raster.ppc.o smooth.ppc.o -FONTDPPC = cff.ppc.o type1.ppc.o type1cid.ppc.o truetype.ppc.o winfnt.ppc.o pcf.ppc.o +FONTDPPC = cff.ppc.o type1.ppc.o type42.ppc.o type1cid.ppc.o truetype.ppc.o\ + bdf.ppc.o pcf.ppc.o pfr.ppc.o winfnt.ppc.o libft2_ppc.a: $(BASEPPC) $(AHINTPPC) $(PSPPC) $(RASTERPPC) sfnt.ppc.o ftcache.ppc.o $(FONTDPPC) $(AR) $@ $(BASEPPC) $(AHINTPPC) $(PSPPC) $(RASTERPPC) sfnt.ppc.o ftcache.ppc.o $(FONTDPPC) diff --git a/builds/amiga/smakefile b/builds/amiga/smakefile index e3dbaf592..ec915081a 100644 --- a/builds/amiga/smakefile +++ b/builds/amiga/smakefile @@ -9,15 +9,18 @@ # Your programs source code should start with this # (uncomment the parts you do not need to keep the program small): # ---8<--- -#define FT_USE_AUTOHINT // autohinter -#define FT_USE_RASTER // monochrome rasterizer -#define FT_USE_SMOOTH // anti-aliasing rasterizer -#define FT_USE_TT // truetype font driver -#define FT_USE_T1 // type1 font driver -#define FT_USE_T1CID // cid-keyed type1 font driver -#define FT_USE_CFF // opentype font driver -#define FT_USE_PCF // pcf bitmap font driver -#define FT_USE_WINFNT // windows .fnt|.fon bitmap font driver +#define FT_USE_AUTOHINT // autohinter +#define FT_USE_RASTER // monochrome rasterizer +#define FT_USE_SMOOTH // anti-aliasing rasterizer +#define FT_USE_TT // truetype font driver +#define FT_USE_T1 // type1 font driver +#define FT_USE_T42 // type42 font driver +#define FT_USE_T1CID // cid-keyed type1 font driver +#define FT_USE_CFF // opentype font driver +#define FT_USE_BDF // bdf bitmap font driver +#define FT_USE_PCF // pcf bitmap font driver +#define FT_USE_PFR // pfr font driver +#define FT_USE_WINFNT // windows .fnt|.fon bitmap font driver #include "FT:src/base/ftinit.c" # ---8<--- # @@ -47,23 +50,12 @@ OBJSFNT = sfnt.o OBJCACHE = ftcache.o -OBJOT = cff.o - -OBJT1 = type1.o - -OBJT1C = type1cid.o - -OBJTT = truetype.o - -OBJWINFNT = winfnt.o - -OBJPCF = pcf.o - OBJPS = $(OBJPSAUX) $(OBJPSNAM) $(OBJPSHINT) OBJRASTER = $(OBJRAST) $(OBJSMOOTH) -OBJFONTD = $(OBJOT) $(OBJT1) $(OBJT1C) $(OBJTT) $(OBJWINFNT) $(OBJPCF) +OBJFONTD = cff.o type1.o type42.o type1cid.o\ + truetype.o winfnt.o bdf.o pcf.o pfr.o CORE = FT:src/ @@ -203,6 +195,12 @@ type1.o: $(CORE)type1/type1.c sc $(SCFLAGS) objname=$@ $< # +# FreeType2 library Type42 font driver +# +type42.o: $(CORE)type42/t42drivr.c + sc $(SCFLAGS) objname=$@ $< + +# # freetype library CID-keyed Type1 font driver # type1cid.o: $(CORE)cid/type1cid.c @@ -214,9 +212,9 @@ type1cid.o: $(CORE)cid/type1cid.c # sc $(SCFLAGS) objname=$@ $< # -# freetype library Windows FNT/FON bitmap font driver +# freetype library BDF bitmap font driver # -winfnt.o: $(CORE)winfonts/winfnt.c +bdf.o: $(CORE)bdf/bdf.c sc $(SCFLAGS) objname=$@ $< # @@ -224,3 +222,15 @@ winfnt.o: $(CORE)winfonts/winfnt.c # pcf.o: $(CORE)pcf/pcf.c sc $(SCFLAGS) objname=$@ $< + +# +# freetype library PFR font driver +# +pfr.o: $(CORE)pfr/pfr.c + sc $(SCFLAGS) objname=$@ $< + +# +# freetype library Windows FNT/FON bitmap font driver +# +winfnt.o: $(CORE)winfonts/winfnt.c + sc $(SCFLAGS) objname=$@ $< |