From b38ca3cbebd1da222dec4ebff0560cfe9a6802c9 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Sun, 6 Dec 2015 19:48:31 +0100 Subject: [PATCH] [autofit] Typos. * src/autofit/afshaper.c (af_shaper_buf_create, af_shaper_get_elem) [!FT_CONFIG_OPTION_USE_HARFBUZZ]: Make it compile. --- ChangeLog | 7 +++++++ src/autofit/afshaper.c | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2d710a96d..17d2a271a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2015-12-06 Werner Lemberg + + [autofit] Typos. + + * src/autofit/afshaper.c (af_shaper_buf_create, af_shaper_get_elem) + [!FT_CONFIG_OPTION_USE_HARFBUZZ]: Make it compile. + 2015-12-06 Werner Lemberg [autofit] Add support for Khmer script. diff --git a/src/autofit/afshaper.c b/src/autofit/afshaper.c index f7c518a3b..1881387fe 100644 --- a/src/autofit/afshaper.c +++ b/src/autofit/afshaper.c @@ -544,11 +544,12 @@ void* af_shaper_buf_create( FT_Face face ) { + FT_Error error; FT_Memory memory = face->memory; FT_ULong* buf; - FT_ALLOC( buf, sizeof ( FT_ULong ) ); + FT_MEM_ALLOC( buf, sizeof ( FT_ULong ) ); return (void*)buf; } @@ -620,7 +621,7 @@ FT_LOAD_NO_SCALE | FT_LOAD_NO_HINTING | FT_LOAD_IGNORE_TRANSFORM, - advance ) ) + advance ); if ( y_offset ) *y_offset = 0;