From 43189db24ea0e36e60007be56daab50a1e0cc52a Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Tue, 24 Nov 2015 17:47:17 +0100 Subject: Use deprecated constant to maintain backwards compatibility with freetype 2.4. (bzr r14488) --- src/libnrtype/FontInstance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libnrtype') 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)); -- cgit v1.2.3