1 diff -Naur tuxcom/tuxcom.c tuxcom.freetype/tuxcom.c
2 --- tuxcom/tuxcom.c 2009-01-06 01:21:26.000000000 +0100
3 +++ tuxcom.freetype/tuxcom.c 2009-01-07 13:21:16.000000000 +0100
8 +#if ((defined(FREETYPE_MAJOR)) && (((FREETYPE_MAJOR == 2) && (((FREETYPE_MINOR == 1) && (FREETYPE_PATCH >= 9)) || (FREETYPE_MINOR > 1))) || (FREETYPE_MAJOR > 2)))
9 + case VERY_SMALL: desc.width = desc.height = FONTHEIGHT_VERY_SMALL; break;
10 + case SMALL : desc.width = desc.height = FONTHEIGHT_SMALL ; break;
11 + case BIG : desc.width = desc.height = FONTHEIGHT_BIG ; break;
13 case VERY_SMALL: desc.font.pix_width = desc.font.pix_height = FONTHEIGHT_VERY_SMALL; break;
14 case SMALL : desc.font.pix_width = desc.font.pix_height = FONTHEIGHT_SMALL ; break;
15 case BIG : desc.font.pix_width = desc.font.pix_height = FONTHEIGHT_BIG ; break;
24 +#if ((defined(FREETYPE_MAJOR)) && (((FREETYPE_MAJOR == 2) && (((FREETYPE_MINOR == 1) && (FREETYPE_PATCH >= 9)) || (FREETYPE_MINOR > 1))) || (FREETYPE_MAJOR > 2)))
25 + case VERY_SMALL: desc.width = desc.height = FONTHEIGHT_VERY_SMALL; break;
26 + case SMALL : desc.width = desc.height = FONTHEIGHT_SMALL ; break;
27 + case BIG : desc.width = desc.height = FONTHEIGHT_BIG ; break;
29 case VERY_SMALL: desc.font.pix_width = desc.font.pix_height = FONTHEIGHT_VERY_SMALL; break;
30 case SMALL : desc.font.pix_width = desc.font.pix_height = FONTHEIGHT_SMALL ; break;
31 case BIG : desc.font.pix_width = desc.font.pix_height = FONTHEIGHT_BIG ; break;
40 +#if ((defined(FREETYPE_MAJOR)) && (((FREETYPE_MAJOR == 2) && (((FREETYPE_MINOR == 1) && (FREETYPE_PATCH >= 9)) || (FREETYPE_MINOR > 1))) || (FREETYPE_MAJOR > 2)))
41 + desc.face_id = FONT2;
43 desc.font.face_id = FONT2;
47 +#if ((defined(FREETYPE_MAJOR)) && (((FREETYPE_MAJOR == 2) && (((FREETYPE_MINOR == 1) && (FREETYPE_PATCH >= 9)) || (FREETYPE_MINOR > 1))) || (FREETYPE_MAJOR > 2)))
48 + desc.face_id = FONT;
50 desc.font.face_id = FONT;
54 use_kerning = FT_HAS_KERNING(face);
57 +#if ((defined(FREETYPE_MAJOR)) && (((FREETYPE_MAJOR == 2) && (((FREETYPE_MINOR == 1) && (FREETYPE_PATCH >= 9)) || (FREETYPE_MINOR > 1))) || (FREETYPE_MAJOR > 2)))
58 + desc.flags = FT_LOAD_MONOCHROME;
60 desc.image_type = ftc_image_mono;
66 diff -Naur tuxcom/tuxcom.h tuxcom.freetype/tuxcom.h
67 --- tuxcom/tuxcom.h 2009-01-06 01:21:26.000000000 +0100
68 +++ tuxcom.freetype/tuxcom.h 2009-01-07 13:21:16.000000000 +0100
73 +#if ((defined(FREETYPE_MAJOR)) && (((FREETYPE_MAJOR == 2) && (((FREETYPE_MINOR == 1) && (FREETYPE_PATCH >= 9)) || (FREETYPE_MINOR > 1))) || (FREETYPE_MAJOR > 2)))
74 +typedef FTC_ImageTypeRec FTC_Image_Desc;
77 //#define FONT "/usr/share/fonts/md_khmurabi_10.ttf"
78 #define FONT "/usr/share/fonts/pakenham.ttf"