summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2008-12-17 11:03:26 +0000
committerWerner Lemberg <wl@gnu.org>2008-12-17 11:03:26 +0000
commitcfc514ea7e05f4734d785cd20a613eee8d5c4ea7 (patch)
treeeb697a87cfd9b3dcc9f6a196cf10f33ad71db7da /src
parentc8c4cc837cd917ee6963e206760669377ceb124d (diff)
downloadfreetype2-cfc514ea7e05f4734d785cd20a613eee8d5c4ea7.tar.gz
* src/base/ftsynth.c (FT_GlyphSlot_Embolden): Don't use internal
macros so that copying the source code into an application works out of the box.
Diffstat (limited to 'src')
-rw-r--r--src/base/ftsynth.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/base/ftsynth.c b/src/base/ftsynth.c
index 24e820c7c..443d27260 100644
--- a/src/base/ftsynth.c
+++ b/src/base/ftsynth.c
@@ -74,7 +74,7 @@
FT_GlyphSlot_Embolden( FT_GlyphSlot slot )
{
FT_Library library = slot->library;
- FT_Face face = FT_SLOT_FACE( slot );
+ FT_Face face = slot->face;
FT_Error error;
FT_Pos xstr, ystr;
@@ -100,10 +100,11 @@
}
else if ( slot->format == FT_GLYPH_FORMAT_BITMAP )
{
- xstr = FT_PIX_FLOOR( xstr );
+ /* round to full pixels */
+ xstr &= ~63;
if ( xstr == 0 )
xstr = 1 << 6;
- ystr = FT_PIX_FLOOR( ystr );
+ ystr &= ~63;
error = FT_GlyphSlot_Own_Bitmap( slot );
if ( error )