4 |
/* */ |
/* */ |
5 |
/* Anti-aliasing renderer interface (body). */ |
/* Anti-aliasing renderer interface (body). */ |
6 |
/* */ |
/* */ |
7 |
/* Copyright 2000-2001, 2002, 2003, 2004 by */ |
/* Copyright 2000-2001, 2002, 2003, 2004, 2005 by */ |
8 |
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
9 |
/* */ |
/* */ |
10 |
/* This file is part of the FreeType project, and may only be used, */ |
/* This file is part of the FreeType project, and may only be used, */ |
54 |
|
|
55 |
/* transform a given glyph image */ |
/* transform a given glyph image */ |
56 |
static FT_Error |
static FT_Error |
57 |
ft_smooth_transform( FT_Renderer render, |
ft_smooth_transform( FT_Renderer render, |
58 |
FT_GlyphSlot slot, |
FT_GlyphSlot slot, |
59 |
FT_Matrix* matrix, |
const FT_Matrix* matrix, |
60 |
FT_Vector* delta ) |
const FT_Vector* delta ) |
61 |
{ |
{ |
62 |
FT_Error error = Smooth_Err_Ok; |
FT_Error error = Smooth_Err_Ok; |
63 |
|
|
94 |
|
|
95 |
/* convert a slot's glyph image into a bitmap */ |
/* convert a slot's glyph image into a bitmap */ |
96 |
static FT_Error |
static FT_Error |
97 |
ft_smooth_render_generic( FT_Renderer render, |
ft_smooth_render_generic( FT_Renderer render, |
98 |
FT_GlyphSlot slot, |
FT_GlyphSlot slot, |
99 |
FT_Render_Mode mode, |
FT_Render_Mode mode, |
100 |
FT_Vector* origin, |
const FT_Vector* origin, |
101 |
FT_Render_Mode required_mode, |
FT_Render_Mode required_mode, |
102 |
FT_Int hmul, |
FT_Int hmul, |
103 |
FT_Int vmul ) |
FT_Int vmul ) |
104 |
{ |
{ |
105 |
FT_Error error; |
FT_Error error; |
106 |
FT_Outline* outline = NULL; |
FT_Outline* outline = NULL; |
231 |
|
|
232 |
/* convert a slot's glyph image into a bitmap */ |
/* convert a slot's glyph image into a bitmap */ |
233 |
static FT_Error |
static FT_Error |
234 |
ft_smooth_render( FT_Renderer render, |
ft_smooth_render( FT_Renderer render, |
235 |
FT_GlyphSlot slot, |
FT_GlyphSlot slot, |
236 |
FT_Render_Mode mode, |
FT_Render_Mode mode, |
237 |
FT_Vector* origin ) |
const FT_Vector* origin ) |
238 |
{ |
{ |
239 |
if ( mode == FT_RENDER_MODE_LIGHT ) |
if ( mode == FT_RENDER_MODE_LIGHT ) |
240 |
mode = FT_RENDER_MODE_NORMAL; |
mode = FT_RENDER_MODE_NORMAL; |
247 |
|
|
248 |
/* convert a slot's glyph image into a horizontal LCD bitmap */ |
/* convert a slot's glyph image into a horizontal LCD bitmap */ |
249 |
static FT_Error |
static FT_Error |
250 |
ft_smooth_render_lcd( FT_Renderer render, |
ft_smooth_render_lcd( FT_Renderer render, |
251 |
FT_GlyphSlot slot, |
FT_GlyphSlot slot, |
252 |
FT_Render_Mode mode, |
FT_Render_Mode mode, |
253 |
FT_Vector* origin ) |
const FT_Vector* origin ) |
254 |
{ |
{ |
255 |
FT_Error error; |
FT_Error error; |
256 |
|
|
266 |
|
|
267 |
/* convert a slot's glyph image into a vertical LCD bitmap */ |
/* convert a slot's glyph image into a vertical LCD bitmap */ |
268 |
static FT_Error |
static FT_Error |
269 |
ft_smooth_render_lcd_v( FT_Renderer render, |
ft_smooth_render_lcd_v( FT_Renderer render, |
270 |
FT_GlyphSlot slot, |
FT_GlyphSlot slot, |
271 |
FT_Render_Mode mode, |
FT_Render_Mode mode, |
272 |
FT_Vector* origin ) |
const FT_Vector* origin ) |
273 |
{ |
{ |
274 |
FT_Error error; |
FT_Error error; |
275 |
|
|