#include <ft2build.h>
#include "ftrend1.h"
#include "ftraster.h"
#include "rasterrs.h"
Go to the source code of this file.
|
static FT_Error | ft_raster1_init (FT_Renderer render) |
|
static FT_Error | ft_raster1_set_mode (FT_Renderer render, FT_ULong mode_tag, FT_Pointer data) |
|
static FT_Error | ft_raster1_transform (FT_Renderer render, FT_GlyphSlot slot, const FT_Matrix *matrix, const FT_Vector *delta) |
|
static void | ft_raster1_get_cbox (FT_Renderer render, FT_GlyphSlot slot, FT_BBox *cbox) |
|
static FT_Error | ft_raster1_render (FT_Renderer render, FT_GlyphSlot slot, FT_Render_Mode mode, const FT_Vector *origin) |
|
◆ ft_raster1_get_cbox()
Definition at line 81 of file ftrend1.c.
84 {
86
89 }
FT_Outline_Get_CBox(const FT_Outline *outline, FT_BBox *acbox)
◆ ft_raster1_init()
◆ ft_raster1_render()
Definition at line 94 of file ftrend1.c.
98 {
105
107
108
109
111 {
114 }
115
116
118 {
119
120 return FT_THROW( Cannot_Render_Glyph );
121 }
122
123
125 {
127 slot->internal->flags &= ~FT_GLYPH_OWN_BITMAP;
128 }
129
131 {
134 }
135
136
139
141
142 x_shift = -
slot->bitmap_left * 64;
144
146 {
149 }
150
151
152 if ( x_shift || y_shift )
154
155
159
160
162
165
166 slot->format = FT_GLYPH_FORMAT_BITMAP;
168 {
170 slot->internal->flags &= ~FT_GLYPH_OWN_BITMAP;
171 }
172
173 if ( x_shift || y_shift )
175
177 }
#define FT_RASTER_FLAG_DEFAULT
FT_BEGIN_HEADER typedef signed long FT_Pos
#define FT_ALLOC_MULT(ptr, count, item_size)
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
GLenum const GLfloat * params
static char memory[1024 *256]
◆ ft_raster1_set_mode()
Definition at line 41 of file ftrend1.c.
44 {
45
46 return render->clazz->raster_class->raster_set_mode(
render->raster,
47 mode_tag,
49 }
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
◆ ft_raster1_transform()
Definition at line 54 of file ftrend1.c.
58 {
60
61
63 {
66 }
67
70
71 if ( delta )
73
76 }
FT_Outline_Transform(const FT_Outline *outline, const FT_Matrix *matrix)