From 95ffde34268043d5590780211c2a284b4c6f18b4 Mon Sep 17 00:00:00 2001 From: Nicolas Noble Date: Thu, 5 Nov 2009 10:25:21 -0800 Subject: Mingw32 version compiles now - removing more truetype support bloat. --- cd/src/sim/cd_truetype.h | 46 ------------------------------------------- cd/src/sim/sim.c | 1 - cd/src/sim/sim_linepolyfill.c | 1 - cd/src/sim/sim_primitives.c | 1 - 4 files changed, 49 deletions(-) delete mode 100755 cd/src/sim/cd_truetype.h (limited to 'cd') diff --git a/cd/src/sim/cd_truetype.h b/cd/src/sim/cd_truetype.h deleted file mode 100755 index f29fb82..0000000 --- a/cd/src/sim/cd_truetype.h +++ /dev/null @@ -1,46 +0,0 @@ -/** \file - * \brief Text and Font Simulation using FreeType library. - * - * See Copyright Notice in cd.h - */ - -#ifndef __TRUETYPE_H -#define __TRUETYPE_H - -#ifdef __cplusplus -extern "C" { -#endif - -#include "ft2build.h" -#include FT_FREETYPE_H - -/* - In CD version 4.4 we start to use FreeType 2. - Only TrueType font support is enabled. -*/ - -typedef struct _cdTT_Text -{ - FT_Library library; - FT_Face face; - - unsigned char* rgba_data; /* the image where one character is drawn with the foreground color during text output */ - int rgba_data_size; - - int max_height; - int max_width; - int descent; - int ascent; - -}cdTT_Text; - -cdTT_Text* cdTT_create(void); -void cdTT_free(cdTT_Text * tt_text); -int cdTT_load(cdTT_Text * tt_text, const char *font,int size, double xres, double yres); - -#ifdef __cplusplus -} -#endif - -#endif /* ifndef _CD_TRUETYPE_ */ - diff --git a/cd/src/sim/sim.c b/cd/src/sim/sim.c index 349624a..3e4ccf1 100755 --- a/cd/src/sim/sim.c +++ b/cd/src/sim/sim.c @@ -11,7 +11,6 @@ #include "cd.h" #include "cd_private.h" -#include "cd_truetype.h" #include "sim.h" diff --git a/cd/src/sim/sim_linepolyfill.c b/cd/src/sim/sim_linepolyfill.c index 1a20907..bbcfa60 100755 --- a/cd/src/sim/sim_linepolyfill.c +++ b/cd/src/sim/sim_linepolyfill.c @@ -12,7 +12,6 @@ #include "cd.h" #include "cd_private.h" -#include "cd_truetype.h" #include "sim.h" diff --git a/cd/src/sim/sim_primitives.c b/cd/src/sim/sim_primitives.c index 5f5e0a3..47a5d00 100755 --- a/cd/src/sim/sim_primitives.c +++ b/cd/src/sim/sim_primitives.c @@ -11,7 +11,6 @@ #include "cd.h" #include "cd_private.h" -#include "cd_truetype.h" #include "sim.h" void cdlineSIM(cdCtxCanvas* ctxcanvas, int x1, int y1, int x2, int y2) -- cgit v1.2.3