33#define FT_COMPONENT synth
47 FT_GlyphSlot_Oblique( FT_GlyphSlot slot )
50 FT_GlyphSlot_Slant( slot, 0x0366A, 0 );
57 FT_GlyphSlot_Slant( FT_GlyphSlot slot,
68 outline = &slot->outline;
71 if ( slot->format != FT_GLYPH_FORMAT_OUTLINE )
77 transform.xx = 0x10000L;
78 transform.yx = -yslant;
80 transform.xy = xslant;
81 transform.yy = 0x10000L;
83 FT_Outline_Transform( outline, &transform );
99 FT_GlyphSlot_Embolden( FT_GlyphSlot slot )
101 FT_GlyphSlot_AdjustWeight( slot, 0x0AAA, 0x0AAA );
105 FT_EXPORT_DEF(
void )
106 FT_GlyphSlot_AdjustWeight( FT_GlyphSlot slot,
119 library = slot->library;
120 size = slot->face->size;
122 if ( slot->format != FT_GLYPH_FORMAT_OUTLINE &&
123 slot->format != FT_GLYPH_FORMAT_BITMAP )
127 xstr = (FT_Pos)size->metrics.x_ppem * xdelta / 1024;
128 ystr = (FT_Pos)size->metrics.y_ppem * ydelta / 1024;
130 if ( slot->format == FT_GLYPH_FORMAT_OUTLINE )
131 FT_Outline_EmboldenXY( &slot->outline, xstr, ystr );
147 if ( ( ystr >> 6 ) > FT_INT_MAX || ( ystr >> 6 ) < FT_INT_MIN )
149 FT_TRACE1((
"FT_GlyphSlot_Embolden:" ));
150 FT_TRACE1((
"too strong emboldening parameter ystr=%ld\n", ystr ));
153 error = FT_GlyphSlot_Own_Bitmap( slot );
157 error = FT_Bitmap_Embolden( library, &slot->bitmap, xstr, ystr );
162 if ( slot->advance.x )
163 slot->advance.x += xstr;
165 if ( slot->advance.y )
166 slot->advance.y += ystr;
168 slot->metrics.width += xstr;
169 slot->metrics.height += ystr;
170 slot->metrics.horiAdvance += xstr;
171 slot->metrics.vertAdvance += ystr;
172 slot->metrics.horiBearingY += ystr;
175 if ( slot->format == FT_GLYPH_FORMAT_BITMAP )
176 slot->bitmap_top += (FT_Int)( ystr >> 6 );