|
|
|
@ -4,7 +4,7 @@ |
|
|
|
|
/* */ |
|
|
|
|
/* Anti-aliasing renderer interface (body). */ |
|
|
|
|
/* */ |
|
|
|
|
/* Copyright 2000-2001, 2002, 2003, 2004 by */ |
|
|
|
|
/* Copyright 2000-2001, 2002, 2003, 2004, 2005 by */ |
|
|
|
|
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
|
|
|
|
/* */ |
|
|
|
|
/* This file is part of the FreeType project, and may only be used, */ |
|
|
|
@ -54,10 +54,10 @@ |
|
|
|
|
|
|
|
|
|
/* transform a given glyph image */ |
|
|
|
|
static FT_Error |
|
|
|
|
ft_smooth_transform( FT_Renderer render, |
|
|
|
|
FT_GlyphSlot slot, |
|
|
|
|
FT_Matrix* matrix, |
|
|
|
|
FT_Vector* delta ) |
|
|
|
|
ft_smooth_transform( FT_Renderer render, |
|
|
|
|
FT_GlyphSlot slot, |
|
|
|
|
const FT_Matrix* matrix, |
|
|
|
|
const FT_Vector* delta ) |
|
|
|
|
{ |
|
|
|
|
FT_Error error = Smooth_Err_Ok; |
|
|
|
|
|
|
|
|
@ -94,13 +94,13 @@ |
|
|
|
|
|
|
|
|
|
/* convert a slot's glyph image into a bitmap */ |
|
|
|
|
static FT_Error |
|
|
|
|
ft_smooth_render_generic( FT_Renderer render, |
|
|
|
|
FT_GlyphSlot slot, |
|
|
|
|
FT_Render_Mode mode, |
|
|
|
|
FT_Vector* origin, |
|
|
|
|
FT_Render_Mode required_mode, |
|
|
|
|
FT_Int hmul, |
|
|
|
|
FT_Int vmul ) |
|
|
|
|
ft_smooth_render_generic( FT_Renderer render, |
|
|
|
|
FT_GlyphSlot slot, |
|
|
|
|
FT_Render_Mode mode, |
|
|
|
|
const FT_Vector* origin, |
|
|
|
|
FT_Render_Mode required_mode, |
|
|
|
|
FT_Int hmul, |
|
|
|
|
FT_Int vmul ) |
|
|
|
|
{ |
|
|
|
|
FT_Error error; |
|
|
|
|
FT_Outline* outline = NULL; |
|
|
|
@ -231,10 +231,10 @@ |
|
|
|
|
|
|
|
|
|
/* convert a slot's glyph image into a bitmap */ |
|
|
|
|
static FT_Error |
|
|
|
|
ft_smooth_render( FT_Renderer render, |
|
|
|
|
FT_GlyphSlot slot, |
|
|
|
|
FT_Render_Mode mode, |
|
|
|
|
FT_Vector* origin ) |
|
|
|
|
ft_smooth_render( FT_Renderer render, |
|
|
|
|
FT_GlyphSlot slot, |
|
|
|
|
FT_Render_Mode mode, |
|
|
|
|
const FT_Vector* origin ) |
|
|
|
|
{ |
|
|
|
|
if ( mode == FT_RENDER_MODE_LIGHT ) |
|
|
|
|
mode = FT_RENDER_MODE_NORMAL; |
|
|
|
@ -247,10 +247,10 @@ |
|
|
|
|
|
|
|
|
|
/* convert a slot's glyph image into a horizontal LCD bitmap */ |
|
|
|
|
static FT_Error |
|
|
|
|
ft_smooth_render_lcd( FT_Renderer render, |
|
|
|
|
FT_GlyphSlot slot, |
|
|
|
|
FT_Render_Mode mode, |
|
|
|
|
FT_Vector* origin ) |
|
|
|
|
ft_smooth_render_lcd( FT_Renderer render, |
|
|
|
|
FT_GlyphSlot slot, |
|
|
|
|
FT_Render_Mode mode, |
|
|
|
|
const FT_Vector* origin ) |
|
|
|
|
{ |
|
|
|
|
FT_Error error; |
|
|
|
|
|
|
|
|
@ -266,10 +266,10 @@ |
|
|
|
|
|
|
|
|
|
/* convert a slot's glyph image into a vertical LCD bitmap */ |
|
|
|
|
static FT_Error |
|
|
|
|
ft_smooth_render_lcd_v( FT_Renderer render, |
|
|
|
|
FT_GlyphSlot slot, |
|
|
|
|
FT_Render_Mode mode, |
|
|
|
|
FT_Vector* origin ) |
|
|
|
|
ft_smooth_render_lcd_v( FT_Renderer render, |
|
|
|
|
FT_GlyphSlot slot, |
|
|
|
|
FT_Render_Mode mode, |
|
|
|
|
const FT_Vector* origin ) |
|
|
|
|
{ |
|
|
|
|
FT_Error error; |
|
|
|
|
|
|
|
|
|