diff options
author | Alexei Podtelezhnikov <apodtele@gmail.com> | 2022-11-20 22:37:08 -0500 |
---|---|---|
committer | Alexei Podtelezhnikov <apodtele@gmail.com> | 2022-11-20 22:37:08 -0500 |
commit | 1c44de209cb465d175279dc30cd95f9857f703dd (patch) | |
tree | 852f4a57cfba56230dfcb43ac15ac86053992cbd | |
parent | 4e6906cc5d31ff3249ea403926e8824b1f44ba43 (diff) | |
download | freetype2-1c44de209cb465d175279dc30cd95f9857f703dd.tar.gz |
* src/autofit/afloader.c (af_loader_load_glyph): Remove `size` check.
This is done by `FT_Load_Glyph`.
-rw-r--r-- | src/autofit/afloader.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/autofit/afloader.c b/src/autofit/afloader.c index 733354d13..978499ff0 100644 --- a/src/autofit/afloader.c +++ b/src/autofit/afloader.c @@ -216,7 +216,7 @@ FT_Error error; FT_Size size = face->size; - FT_Size_Internal size_internal = NULL; + FT_Size_Internal size_internal = size->internal; FT_GlyphSlot slot = face->glyph; FT_Slot_Internal slot_internal = slot->internal; FT_GlyphLoader gloader = slot_internal->loader; @@ -229,11 +229,6 @@ AF_WritingSystemClass writing_system_class; - if ( !size ) - return FT_THROW( Invalid_Size_Handle ); - - size_internal = size->internal; - FT_ZERO( &scaler ); if ( !size_internal->autohint_metrics.x_scale || |