summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2015-11-24 16:47:17 +0000
committertavmjong-free <tavmjong@free.fr>2015-11-24 16:47:17 +0000
commit43189db24ea0e36e60007be56daab50a1e0cc52a (patch)
treeca31f0cb254e7d6297c5af4278357b5efba3fbd4 /src
parentMerge 'writing-modes' branch. (diff)
downloadinkscape-43189db24ea0e36e60007be56daab50a1e0cc52a.tar.gz
inkscape-43189db24ea0e36e60007be56daab50a1e0cc52a.zip
Use deprecated constant to maintain backwards compatibility with freetype 2.4.
(bzr r14488)
Diffstat (limited to 'src')
-rw-r--r--src/libnrtype/FontInstance.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libnrtype/FontInstance.cpp b/src/libnrtype/FontInstance.cpp
index f0b87efa7..7a16fc0c3 100644
--- a/src/libnrtype/FontInstance.cpp
+++ b/src/libnrtype/FontInstance.cpp
@@ -744,7 +744,7 @@ void font_instance::FindFontMetrics() {
if ( theFace->units_per_EM != 0 ) { // If zero then it's a bitmap font.
- TT_OS2* os2 = (TT_OS2*)FT_Get_Sfnt_Table( theFace, FT_SFNT_OS2 );
+ TT_OS2* os2 = (TT_OS2*)FT_Get_Sfnt_Table( theFace, ft_sfnt_os2 );
if( os2 ) {
_ascent = fabs(((double)os2->sTypoAscender) / ((double)theFace->units_per_EM));
_descent = fabs(((double)os2->sTypoDescender)/ ((double)theFace->units_per_EM));