diff options
Diffstat (limited to 'src/truetype/ttdriver.c')
-rw-r--r-- | src/truetype/ttdriver.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/truetype/ttdriver.c b/src/truetype/ttdriver.c index eaa14aad8..6fcfdb23e 100644 --- a/src/truetype/ttdriver.c +++ b/src/truetype/ttdriver.c @@ -354,7 +354,16 @@ #endif /* TT_CONFIG_OPTION_EMBEDDED_BITMAPS */ - FT_Request_Metrics( size->face, req ); + { + FT_Error err = FT_Request_Metrics( size->face, req ); + + + if ( err ) + { + error = err; + goto Exit; + } + } if ( FT_IS_SCALABLE( size->face ) ) { @@ -382,6 +391,7 @@ #endif } + Exit: return error; } |