summaryrefslogtreecommitdiffstats
path: root/src/libnrtype
diff options
context:
space:
mode:
Diffstat (limited to 'src/libnrtype')
-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));