ftsmooth.c File Reference

#include <ft2build.h>
#include "ftsmooth.h"
#include "ftgrays.h"
#include "ftspic.h"
#include "ftsmerrs.h"

Go to the source code of this file.

Functions

static FT_Error ft_smooth_init (FT_Renderer render)
static FT_Error ft_smooth_set_mode (FT_Renderer render, FT_ULong mode_tag, FT_Pointer data)
static FT_Error ft_smooth_transform (FT_Renderer render, FT_GlyphSlot slot, const FT_Matrix *matrix, const FT_Vector *delta)
static void ft_smooth_get_cbox (FT_Renderer render, FT_GlyphSlot slot, FT_BBox *cbox)
static FT_Error ft_smooth_render_generic (FT_Renderer render, FT_GlyphSlot slot, FT_Render_Mode mode, const FT_Vector *origin, FT_Render_Mode required_mode)
static FT_Error ft_smooth_render (FT_Renderer render, FT_GlyphSlot slot, FT_Render_Mode mode, const FT_Vector *origin)
static FT_Error ft_smooth_render_lcd (FT_Renderer render, FT_GlyphSlot slot, FT_Render_Mode mode, const FT_Vector *origin)
static FT_Error ft_smooth_render_lcd_v (FT_Renderer render, FT_GlyphSlot slot, FT_Render_Mode mode, const FT_Vector *origin)
 FT_DEFINE_RENDERER (ft_smooth_renderer_class, FT_MODULE_RENDERER, sizeof(FT_RendererRec),"smooth", 0x10000L, 0x20000L, 0,(FT_Module_Constructor) ft_smooth_init,(FT_Module_Destructor) 0,(FT_Module_Requester) 0, FT_GLYPH_FORMAT_OUTLINE,(FT_Renderer_RenderFunc) ft_smooth_render,(FT_Renderer_TransformFunc) ft_smooth_transform,(FT_Renderer_GetCBoxFunc) ft_smooth_get_cbox,(FT_Renderer_SetModeFunc) ft_smooth_set_mode,(FT_Raster_Funcs *)&FT_GRAYS_RASTER_GET) FT_DEFINE_RENDERER(ft_smooth_lcd_renderer_class
 sizeof (FT_RendererRec)

Variables

 FT_MODULE_RENDERER
smooth lcd
smooth x10000L
smooth x20000L
smooth FT_Module_Constructor ft_smooth_init
smooth FT_Module_Constructor FT_Module_Destructor
smooth FT_Module_Constructor FT_Module_Requester
smooth FT_Module_Constructor FT_GLYPH_FORMAT_OUTLINE
smooth FT_Module_Constructor
FT_Renderer_RenderFunc 
ft_smooth_render_lcd
smooth FT_Module_Constructor
FT_Renderer_RenderFunc FT_Renderer_TransformFunc 
ft_smooth_transform
smooth FT_Module_Constructor
FT_Renderer_RenderFunc FT_Renderer_TransformFunc
FT_Renderer_GetCBoxFunc 
ft_smooth_get_cbox
smooth FT_Module_Constructor
FT_Renderer_RenderFunc FT_Renderer_TransformFunc
FT_Renderer_GetCBoxFunc FT_Renderer_SetModeFunc 
ft_smooth_set_mode


Function Documentation

FT_DEFINE_RENDERER ( ft_smooth_renderer_class  ,
FT_MODULE_RENDERER  ,
sizeof(FT_RendererRec ,
"smooth"  ,
0x10000L  ,
0x20000L  ,
,
(FT_Module_Constructor ft_smooth_init,
(FT_Module_Destructor 0,
(FT_Module_Requester 0,
FT_GLYPH_FORMAT_OUTLINE  ,
(FT_Renderer_RenderFunc ft_smooth_render,
(FT_Renderer_TransformFunc ft_smooth_transform,
(FT_Renderer_GetCBoxFunc ft_smooth_get_cbox,
(FT_Renderer_SetModeFunc ft_smooth_set_mode,
(FT_Raster_Funcs *)&  FT_GRAYS_RASTER_GET 
)

static void ft_smooth_get_cbox ( FT_Renderer  render,
FT_GlyphSlot  slot,
FT_BBox cbox 
) [static]

Definition at line 86 of file ftsmooth.c.

References FT_GlyphSlotRec_::format, FT_MEM_ZERO, FT_Outline_Get_CBox(), FT_RendererRec_::glyph_format, and FT_GlyphSlotRec_::outline.

static FT_Error ft_smooth_init ( FT_Renderer  render  )  [static]

Definition at line 32 of file ftsmooth.c.

References FT_RendererRec_::clazz, FT_MODULE_LIBRARY, FT_RendererRec_::raster, FT_Renderer_Class_::raster_class, FT_LibraryRec_::raster_pool, FT_LibraryRec_::raster_pool_size, and FT_Raster_Funcs_::raster_reset.

static FT_Error ft_smooth_render ( FT_Renderer  render,
FT_GlyphSlot  slot,
FT_Render_Mode  mode,
const FT_Vector origin 
) [static]

Definition at line 352 of file ftsmooth.c.

References FT_RENDER_MODE_LIGHT, FT_RENDER_MODE_NORMAL, and ft_smooth_render_generic().

static FT_Error ft_smooth_render_generic ( FT_Renderer  render,
FT_GlyphSlot  slot,
FT_Render_Mode  mode,
const FT_Vector origin,
FT_Render_Mode  required_mode 
) [static]

Definition at line 99 of file ftsmooth.c.

References FT_GlyphSlotRec_::bitmap, FT_GlyphSlotRec_::bitmap_left, FT_GlyphSlotRec_::bitmap_top, FT_Bitmap_::buffer, error, extra, FT_Slot_InternalRec_::flags, for(), FT_GlyphSlotRec_::format, FT_ALLOC, FT_ERROR, FT_FREE, FT_GLYPH_FORMAT_BITMAP, FT_GLYPH_OWN_BITMAP, FT_INT_MAX, ft_memcpy, FT_Outline_Get_CBox(), FT_Outline_Translate(), FT_PAD_CEIL, FT_PIX_CEIL, FT_PIX_FLOOR, FT_PIXEL_MODE_GRAY, FT_Pos, FT_RASTER_FLAG_AA, FT_RENDER_MODE_LCD, FT_RENDER_MODE_LCD_V, FT_RendererRec_::glyph_format, height, if(), FT_GlyphSlotRec_::internal, FT_GlyphSlotRec_::library, line, FT_ModuleRec_::memory, NULL, FT_Bitmap_::num_grays, FT_GlyphSlotRec_::outline, params, FT_Bitmap_::pitch, FT_Bitmap_::pixel_mode, points, FT_RendererRec_::raster, FT_RendererRec_::raster_render, read, FT_RendererRec_::root, FT_Bitmap_::rows, FT_Bitmap_::width, width, write, FT_Vector_::x, FT_BBox_::xMax, FT_BBox_::xMin, FT_Vector_::y, FT_BBox_::yMax, and FT_BBox_::yMin.

Referenced by ft_smooth_render(), ft_smooth_render_lcd(), and ft_smooth_render_lcd_v().

static FT_Error ft_smooth_render_lcd ( FT_Renderer  render,
FT_GlyphSlot  slot,
FT_Render_Mode  mode,
const FT_Vector origin 
) [static]

Definition at line 367 of file ftsmooth.c.

References FT_GlyphSlotRec_::bitmap, error, FT_PIXEL_MODE_LCD, FT_RENDER_MODE_LCD, ft_smooth_render_generic(), and FT_Bitmap_::pixel_mode.

static FT_Error ft_smooth_render_lcd_v ( FT_Renderer  render,
FT_GlyphSlot  slot,
FT_Render_Mode  mode,
const FT_Vector origin 
) [static]

Definition at line 385 of file ftsmooth.c.

References FT_GlyphSlotRec_::bitmap, error, FT_PIXEL_MODE_LCD_V, FT_RENDER_MODE_LCD_V, ft_smooth_render_generic(), and FT_Bitmap_::pixel_mode.

static FT_Error ft_smooth_set_mode ( FT_Renderer  render,
FT_ULong  mode_tag,
FT_Pointer  data 
) [static]

Definition at line 47 of file ftsmooth.c.

References FT_RendererRec_::clazz, FT_RendererRec_::raster, FT_Renderer_Class_::raster_class, and FT_Raster_Funcs_::raster_set_mode.

static FT_Error ft_smooth_transform ( FT_Renderer  render,
FT_GlyphSlot  slot,
const FT_Matrix matrix,
const FT_Vector delta 
) [static]

Definition at line 59 of file ftsmooth.c.

References error, FT_GlyphSlotRec_::format, FT_Outline_Transform(), FT_Outline_Translate(), FT_RendererRec_::glyph_format, FT_GlyphSlotRec_::outline, FT_Vector_::x, and FT_Vector_::y.

sizeof ( FT_RendererRec   ) 


Variable Documentation

smooth FT_Module_Constructor FT_GLYPH_FORMAT_OUTLINE

Definition at line 433 of file ftsmooth.c.

smooth FT_Module_Constructor FT_Module_Destructor

Definition at line 433 of file ftsmooth.c.

FT_MODULE_RENDERER

Definition at line 430 of file ftsmooth.c.

smooth FT_Module_Constructor FT_Module_Requester

Definition at line 433 of file ftsmooth.c.

smooth FT_Module_Constructor FT_Renderer_RenderFunc FT_Renderer_TransformFunc FT_Renderer_GetCBoxFunc ft_smooth_get_cbox

Definition at line 433 of file ftsmooth.c.

smooth FT_Module_Constructor ft_smooth_init

Definition at line 433 of file ftsmooth.c.

smooth FT_Module_Constructor FT_Renderer_RenderFunc ft_smooth_render_lcd

Definition at line 433 of file ftsmooth.c.

smooth FT_Module_Constructor FT_Renderer_RenderFunc FT_Renderer_TransformFunc FT_Renderer_GetCBoxFunc FT_Renderer_SetModeFunc ft_smooth_set_mode

Definition at line 433 of file ftsmooth.c.

smooth FT_Module_Constructor FT_Renderer_RenderFunc FT_Renderer_TransformFunc ft_smooth_transform

Definition at line 433 of file ftsmooth.c.

smooth lcd

Definition at line 433 of file ftsmooth.c.

smooth x10000L

Definition at line 433 of file ftsmooth.c.

smooth x20000L

Definition at line 433 of file ftsmooth.c.


Generated on Tue Jul 5 15:58:26 2011 for ROOT_528-00b_version by  doxygen 1.5.1