summaryrefslogtreecommitdiff
path: root/core/fxge/fx_freetype.h
diff options
context:
space:
mode:
authorAndrew Weintraub <asweintraub@google.com>2018-01-04 16:23:07 -0500
committerChromium commit bot <commit-bot@chromium.org>2018-01-08 15:17:51 +0000
commitde8be21859ce52b5f9b4d9e33687c42c9ea79fb1 (patch)
tree8b676099a7e14aadf462a2c2ede92627acd4b85a /core/fxge/fx_freetype.h
parentdc36f99188feec82454f62d5f489f358dc5fd9c1 (diff)
downloadpdfium-de8be21859ce52b5f9b4d9e33687c42c9ea79fb1.tar.xz
Always enable hinting with versions of Freetype >= 2.8.1, which include subpixel rendering unencumbered by patents.
Bug: Change-Id: Idaff1bf21a1d17b6ea40b9fecec04c5f2d0c9392 Reviewed-on: https://pdfium-review.googlesource.com/22012 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxge/fx_freetype.h')
-rw-r--r--core/fxge/fx_freetype.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/fxge/fx_freetype.h b/core/fxge/fx_freetype.h
index 97d5407eb9..8a5fd5dda3 100644
--- a/core/fxge/fx_freetype.h
+++ b/core/fxge/fx_freetype.h
@@ -69,6 +69,9 @@ using FXFT_Outline_Funcs = FT_Outline_Funcs;
FT_Done_FreeType(static_cast<FT_Library>(library))
#define FXFT_Init_FreeType(library) \
FT_Init_FreeType(reinterpret_cast<FT_Library*>(library))
+#define FXFT_Library_Version(library, amajor, aminor, apatch) \
+ FT_Library_Version(reinterpret_cast<FT_Library>(library), amajor, aminor, \
+ apatch)
#define FXFT_New_Memory_Face(library, base, size, index, face) \
FT_New_Memory_Face(static_cast<FT_Library>(library), base, size, index, \
static_cast<FT_Face*>(face))