[PATCH] build with t1lib for type3 support



The attached patch makes evince build using t1lib which gives support
for type 3 fonts, which makes rendering of pdfs like the one in
http://bugzilla.gnome.org/show_bug.cgi?id=112506 work.

It is a really bad patch because I don't have much experience with
autoconf/automake. I just sort of hit it until it worked. Hopefully
someone who knows what they are doing can do something better.

-Jeff
Index: configure.ac
===================================================================
RCS file: /cvs/gnome/evince/configure.ac,v
retrieving revision 1.28
diff -u -r1.28 configure.ac
--- configure.ac	15 Feb 2005 23:17:41 -0000	1.28
+++ configure.ac	16 Feb 2005 17:18:59 -0000
@@ -268,6 +268,14 @@
   AC_DEFINE(HAVE_FSEEK64, 1, [Have fseek64().])
 fi
 
+dnl Check for t1lib
+T1_LIBS=
+T1_CFLAGS=
+AC_CHECK_HEADERS(t1lib.h)
+AC_CHECK_LIB(t1,T1_GetCharOutline,
+	T1_LIBS='-lt1')
+AC_SUBST(T1_LIBS)
+
 dnl Check for freetype headers
 FREETYPE_LIBS=
 FREETYPE_CFLAGS=
Index: pdf/xpdf/Makefile.am
===================================================================
RCS file: /cvs/gnome/evince/pdf/xpdf/Makefile.am,v
retrieving revision 1.85
diff -u -r1.85 Makefile.am
--- pdf/xpdf/Makefile.am	4 Jan 2005 08:30:06 -0000	1.85
+++ pdf/xpdf/Makefile.am	16 Feb 2005 17:19:04 -0000
@@ -114,7 +114,8 @@
 	$(top_builddir)/pdf/goo/libGoo.la                       \
 	$(top_builddir)/pdf/fofi/libfofi.la                     \
 	$(top_builddir)/pdf/splash/libsplash.la                 \
-	$(top_builddir)/backend/libevbackend.la			\
+	$(top_builddir)/backend/libevbackend.la                 \
+	$(T1_LIBS)                                              \
 	$(GTK_LIBS)
 
 libpdfdocument_la_SOURCES =	\
@@ -126,6 +127,7 @@
 	$(top_builddir)/backend/libevbackend.la			\
 	$(top_builddir)/pdf/goo/libGoo.la                       \
 	$(top_builddir)/pdf/fofi/libfofi.la                     \
-	$(top_builddir)/pdf/splash/libsplash.la
+	$(top_builddir)/pdf/splash/libsplash.la                 \
+	$(T1_LIBS)
 
 EXTRA_DIST = xpdfconfig.h
Index: shell/Makefile.am
===================================================================
RCS file: /cvs/gnome/evince/shell/Makefile.am,v
retrieving revision 1.25
diff -u -r1.25 Makefile.am
--- shell/Makefile.am	16 Feb 2005 03:38:12 -0000	1.25
+++ shell/Makefile.am	16 Feb 2005 17:19:05 -0000
@@ -55,6 +55,7 @@
 	$(top_builddir)/pixbuf/libpixbufdocument.la	\
 	$(top_builddir)/ps/libgtkgs.la			\
 	$(top_builddir)/backend/libevbackend.la		\
+	$(T1_LIBS)					\
 	$(NULL)
 
 BUILT_SOURCES = ev-marshal.h ev-marshal.c


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]