118 {
127
129
130
131
133 {
136 }
137
138
139 if (
mode != required_mode )
140 {
143 }
144
145
147 {
149 slot->internal->flags &= ~FT_GLYPH_OWN_BITMAP;
150 }
151
153 {
156 }
157
158
161
163
164 x_shift = 64 * -
slot->bitmap_left;
165 y_shift = 64 * -
slot->bitmap_top;
168 else
170
172 {
175 }
176
177
178 if ( x_shift || y_shift )
180
181
185
186#ifdef FT_CONFIG_OPTION_SUBPIXEL_RENDERING
187
188
189 {
193
194
195 if ( hmul )
198
202 }
203
204
206
207
208 {
212
213
214 if ( hmul )
217
221 }
222
225
226
227 if ( hmul || vmul )
228 {
230 FT_Bitmap_LcdFilterFunc lcd_filter_func;
231
232
233
234 if (
slot->face &&
slot->face->internal->lcd_filter_func )
235 {
236 lcd_weights =
slot->face->internal->lcd_weights;
237 lcd_filter_func =
slot->face->internal->lcd_filter_func;
238 }
239 else
240 {
241 lcd_weights =
slot->library->lcd_weights;
242 lcd_filter_func =
slot->library->lcd_filter_func;
243 }
244
245 if ( lcd_filter_func )
247 }
248
249#else
250
251 if ( hmul )
252 {
256
259 int pitch =
bitmap->pitch;
260
262
263
264
266
273
277 sub[0].
y - sub[1].
y );
282
286 sub[1].
y - sub[2].
y );
291
294
295
296
297
300
302 {
305 {
309 }
311 }
312
314 }
315 else if ( vmul )
316 {
317 int pitch =
bitmap->pitch;
318
320
321
322
323
324
327
334
338 sub[1].
x - sub[0].
x );
343
344 bitmap->buffer += 2 * pitch;
347 sub[2].
x - sub[1].
x );
349 bitmap->buffer -= 2 * pitch;
352
355
358 }
359 else
361
362#endif
363
366 {
367
368 slot->format = FT_GLYPH_FORMAT_BITMAP;
369 }
371 {
373 slot->internal->flags &= ~FT_GLYPH_OWN_BITMAP;
374 }
375
376 if ( x_shift || y_shift )
378
380 }
#define FT_RASTER_FLAG_AA
FT_BEGIN_HEADER typedef signed long FT_Pos
#define FT_ALLOC_MULT(ptr, count, item_size)
#define FT_ALLOC(ptr, size)
#define FT_MEM_COPY(dest, source, count)
ft_glyphslot_preset_bitmap(FT_GlyphSlot slot, FT_Render_Mode mode, const FT_Vector *origin)
#define FT_GLYPH_OWN_BITMAP
FT_Outline_Translate(const FT_Outline *outline, FT_Pos xOffset, FT_Pos yOffset)
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
GLint GLint GLsizei GLsizei height
GLint GLint GLsizei width
GLenum const GLfloat * params
GLsizei const GLfloat * points
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
static char memory[1024 *256]