summaryrefslogtreecommitdiff
path: root/src/smooth
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2017-10-01 09:23:42 +0200
committerWerner Lemberg <wl@gnu.org>2017-10-01 09:23:42 +0200
commitaf03d1eaa173d9a1016370ed182fd98cda66965e (patch)
tree62d7843b84252a8a8fc2225bcb3c6f2f7f36c32b /src/smooth
parent179caf5a618a684d3f8f25e0f3def3c41c2504ab (diff)
downloadfreetype2-af03d1eaa173d9a1016370ed182fd98cda66965e.tar.gz
[smooth,type1] Formatting, whitespace.
Diffstat (limited to 'src/smooth')
-rw-r--r--src/smooth/ftsmooth.c18
1 files changed, 10 insertions, 8 deletions
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, &params );
@@ -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, &params );
@@ -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, &params );
@@ -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, &params );
@@ -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 );