diff options
Diffstat (limited to 'src/base/ftsynth.c')
-rw-r--r-- | src/base/ftsynth.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/base/ftsynth.c b/src/base/ftsynth.c index ed809513a..c2d4d52fe 100644 --- a/src/base/ftsynth.c +++ b/src/base/ftsynth.c @@ -87,7 +87,10 @@ if ( slot->format == FT_GLYPH_FORMAT_OUTLINE ) { error = FT_Outline_Embolden( &slot->outline, xstr ); - xstr = xstr * 4; /* according to the documentation */ + + /* this is more than enough for most glyphs */ + /* if you need accurate values, you have to FT_Outline_Get_CBox */ + xstr = xstr * 2; ystr = xstr; } else if ( slot->format == FT_GLYPH_FORMAT_BITMAP ) |