87 |
if ( slot->format == FT_GLYPH_FORMAT_OUTLINE ) |
if ( slot->format == FT_GLYPH_FORMAT_OUTLINE ) |
88 |
{ |
{ |
89 |
error = FT_Outline_Embolden( &slot->outline, xstr ); |
error = FT_Outline_Embolden( &slot->outline, xstr ); |
90 |
xstr = xstr * 4; /* according to the documentation */ |
|
91 |
|
/* this is more than enough for most glyphs */ |
92 |
|
/* if you need accurate values, you have to FT_Outline_Get_CBox */ |
93 |
|
xstr = xstr * 2; |
94 |
ystr = xstr; |
ystr = xstr; |
95 |
} |
} |
96 |
else if ( slot->format == FT_GLYPH_FORMAT_BITMAP ) |
else if ( slot->format == FT_GLYPH_FORMAT_BITMAP ) |