[sodipodi] Protect nr_type_ft2_build_def() with WITH_FT2, fix typo
- From: Hans Breuer <hans src gnome org>
- To: svn-commits-list gnome org
- Subject: [sodipodi] Protect nr_type_ft2_build_def() with WITH_FT2, fix typo
- Date: Sat, 18 Apr 2009 10:59:35 -0400 (EDT)
commit 1d0a01a512a2d6e012322ce6a58695fe2ac13915
Author: Hans Breuer <hans breuer org>
Date: Sat Apr 18 13:15:12 2009 +0200
Protect nr_type_ft2_build_def() with WITH_FT2, fix typo
---
src/libnrtype/nr-type-directory.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/libnrtype/nr-type-directory.c b/src/libnrtype/nr-type-directory.c
index 0e18ffd..4390390 100644
--- a/src/libnrtype/nr-type-directory.c
+++ b/src/libnrtype/nr-type-directory.c
@@ -35,7 +35,7 @@
#include <libnr/nr-values.h>
/* #include "../style.h" */
#include "nr-type-primitives.h"
-#ifdef WIT_FT2
+#ifdef WITH_FT2
#include "nr-type-ft2.h"
#endif
#ifdef WITH_GNOME_PRINT
@@ -658,6 +658,7 @@ nr_type_read_private_list (void)
if (!arikkei_token_is_empty (&filet) &&
!arikkei_token_is_empty (&namet) &&
!arikkei_token_is_empty (&familyt)) {
+#ifdef WITH_FT2
NRTypeFaceDefFT2 *dft2;
unsigned char f[1024], n[1024], m[1024];
dft2 = nr_new (NRTypeFaceDefFT2, 1);
@@ -668,6 +669,9 @@ nr_type_read_private_list (void)
arikkei_token_strncpy (&familyt, m, 1024);
nr_type_ft2_build_def (dft2, f, n, m, slant, weight, face);
nr_type_register ((NRTypeFaceDef *) dft2);
+#else
+ g_warning ("NRTypeFaceDefFT2 (%s,%s,%s)", f, n, m);
+#endif
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]