/**************************************************************************** * * ftrend1.c * * The FreeType glyph rasterizer interface (body). * * Copyright (C) 1996-2023 by * David Turner, Robert Wilhelm, and Werner Lemberg. * * This file is part of the FreeType project, and may only be used, * modified, and distributed under the terms of the FreeType project * license, LICENSE.TXT. By continuing to use, modify, or distribute * this file you indicate that you have read the license and * understand and accept it fully. * */ #include <freetype/internal/ftdebug.h> #include <freetype/internal/ftobjs.h> #include <freetype/ftoutln.h> #include "ftrend1.h" #include "ftraster.h" #include "rasterrs.h" /* initialize renderer -- init its raster */ static FT_Error ft_raster1_init( FT_Module module ) /* FT_Renderer */ { … } /* set render-specific mode */ static FT_Error ft_raster1_set_mode( FT_Renderer render, FT_ULong mode_tag, FT_Pointer data ) { … } /* transform a given glyph image */ static FT_Error ft_raster1_transform( FT_Renderer render, FT_GlyphSlot slot, const FT_Matrix* matrix, const FT_Vector* delta ) { … } /* return the glyph's control box */ static void ft_raster1_get_cbox( FT_Renderer render, FT_GlyphSlot slot, FT_BBox* cbox ) { … } /* convert a slot's glyph image into a bitmap */ static FT_Error ft_raster1_render( FT_Renderer render, FT_GlyphSlot slot, FT_Render_Mode mode, const FT_Vector* origin ) { … } FT_DEFINE_RENDERER( ft_raster1_renderer_class, FT_MODULE_RENDERER, sizeof ( FT_RendererRec ), "raster1", 0x10000L, 0x20000L, NULL, /* module specific interface */ ft_raster1_init, /* FT_Module_Constructor module_init */ NULL, /* FT_Module_Destructor module_done */ NULL, /* FT_Module_Requester get_interface */ FT_GLYPH_FORMAT_OUTLINE, ft_raster1_render, /* FT_Renderer_RenderFunc render_glyph */ ft_raster1_transform, /* FT_Renderer_TransformFunc transform_glyph */ ft_raster1_get_cbox, /* FT_Renderer_GetCBoxFunc get_glyph_cbox */ ft_raster1_set_mode, /* FT_Renderer_SetModeFunc set_mode */ &ft_standard_raster /* FT_Raster_Funcs* raster_class */ ) /* END */