summaryrefslogtreecommitdiff
path: root/source/fitz/font.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-03-21 16:07:28 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-03-21 16:09:22 +0100
commit4022d1bb49a7ece2ffa1d88bbe9ae4839e27132b (patch)
tree7e2d6e7287aacd06d9519135db9f54f3561e5084 /source/fitz/font.c
parent62f6df06680cf62b9ac88837f9db3eed9499fcbc (diff)
downloadmupdf-4022d1bb49a7ece2ffa1d88bbe9ae4839e27132b.tar.xz
Allow building with old versions of freetype.
Debian stable still ships with freetype 2.5.2. We normally wouldn't care, but desktop java builds need to use the system freetype library as that's what AWT links against.
Diffstat (limited to 'source/fitz/font.c')
-rw-r--r--source/fitz/font.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/fitz/font.c b/source/fitz/font.c
index 8f598be1..56cfecbf 100644
--- a/source/fitz/font.c
+++ b/source/fitz/font.c
@@ -12,6 +12,10 @@
#define MAX_BBOX_TABLE_SIZE 4096
#define MAX_ADVANCE_CACHE 4096
+#ifndef FT_SFNT_OS2
+#define FT_SFNT_OS2 ft_sfnt_os2
+#endif
+
/* 20 degrees */
#define SHEAR 0.36397f