From af03d1eaa173d9a1016370ed182fd98cda66965e Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Sun, 1 Oct 2017 09:23:42 +0200 Subject: [smooth,type1] Formatting, whitespace. --- src/smooth/ftsmooth.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'src/smooth') diff --git a/src/smooth/ftsmooth.c b/src/smooth/ftsmooth.c index db3a1c31d..938d295ad 100644 --- a/src/smooth/ftsmooth.c +++ b/src/smooth/ftsmooth.c @@ -231,9 +231,9 @@ FT_Byte* temp; FT_Int i, j; - unsigned int height = bitmap->rows; - unsigned int width = bitmap->width; - int pitch = bitmap->pitch; + unsigned int height = bitmap->rows; + unsigned int width = bitmap->width; + int pitch = bitmap->pitch; /* Render 3 separate monochrome bitmaps, shifting the outline */ @@ -247,7 +247,7 @@ goto Exit; FT_Outline_Translate( outline, -21, 0 ); - x_shift -= 21; + x_shift -= 21; bitmap->buffer += width; error = render->raster_render( render->raster, ¶ms ); @@ -255,7 +255,7 @@ goto Exit; FT_Outline_Translate( outline, 42, 0 ); - x_shift += 42; + x_shift += 42; bitmap->buffer -= 2 * width; error = render->raster_render( render->raster, ¶ms ); @@ -284,7 +284,7 @@ } else if ( vmul ) /* lcd_v */ { - int pitch = bitmap->pitch; + int pitch = bitmap->pitch; /* Render 3 separate monochrome bitmaps, shifting the outline */ @@ -299,7 +299,7 @@ goto Exit; FT_Outline_Translate( outline, 0, 21 ); - y_shift += 21; + y_shift += 21; bitmap->buffer += pitch; error = render->raster_render( render->raster, ¶ms ); @@ -307,7 +307,7 @@ goto Exit; FT_Outline_Translate( outline, 0, -42 ); - y_shift -= 42; + y_shift -= 42; bitmap->buffer -= 2 * pitch; error = render->raster_render( render->raster, ¶ms ); @@ -324,8 +324,10 @@ Exit: if ( !error ) + { /* everything is fine; the glyph is now officially a bitmap */ slot->format = FT_GLYPH_FORMAT_BITMAP; + } else if ( slot->internal->flags & FT_GLYPH_OWN_BITMAP ) { FT_FREE( bitmap->buffer ); -- cgit v1.2.1