#include <ft2build.h>
#include "ftrend1.h"
#include "ftraster.h"
#include "rastpic.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 82 of file ftrend1.c.
85 {
87
90 }
FT_Outline_Get_CBox(const FT_Outline *outline, FT_BBox *acbox)
◆ ft_raster1_init()
◆ ft_raster1_render()
Definition at line 95 of file ftrend1.c.
99 {
106
108
109
110
112 {
115 }
116
117
119 {
120
121 return FT_THROW( Cannot_Render_Glyph );
122 }
123
124
126 {
128 slot->internal->flags &= ~FT_GLYPH_OWN_BITMAP;
129 }
130
132
133
136
138
139 x_shift = -
slot->bitmap_left * 64;
141
143 {
146 }
147
148
149 if ( x_shift || y_shift )
151
152
156
157
159
162
163 slot->format = FT_GLYPH_FORMAT_BITMAP;
165 {
167 slot->internal->flags &= ~FT_GLYPH_OWN_BITMAP;
168 }
169
170 if ( x_shift || y_shift )
172
174 }
#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 42 of file ftrend1.c.
45 {
46
47 return render->clazz->raster_class->raster_set_mode(
render->raster,
48 mode_tag,
50 }
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
◆ ft_raster1_transform()
Definition at line 55 of file ftrend1.c.
59 {
61
62
64 {
67 }
68
71
72 if ( delta )
74
77 }
FT_Outline_Transform(const FT_Outline *outline, const FT_Matrix *matrix)