33 const char * str,
size_t length,
int *
width);
35 const char *string,
size_t length,
36 int x,
size_t *char_offset,
int *actual_x);
38 const char *string,
size_t length,
39 int x,
size_t *char_offset,
int *actual_x);
44 uint8_t * pixdata,
int pitch, uint32_t
colour);
74#ifdef WITH_VDI_FONT_DRIVER
77#ifdef WITH_INTERNAL_FONT_DRIVER
80#ifdef WITH_FREETYPE_FONT_DRIVER
FONT_PLOTTER plot_get_text_plotter(void)
void dump_font_drivers(void)
void plot_set_text_plotter(FONT_PLOTTER font_plotter)
FONT_PLOTTER new_font_plotter(int vdihandle, char *name, unsigned long flags, int *error)
Create an new text plotter object.
int(* _fpmf_str_split)(FONT_PLOTTER self, const plot_font_style_t *fstyle, const char *string, size_t length, int x, size_t *char_offset, int *actual_x)
int(* _fpmf_text)(FONT_PLOTTER self, int x, int y, const char *text, size_t length, const plot_font_style_t *fstyle)
int(* _fpmf_pixel_pos)(FONT_PLOTTER self, const plot_font_style_t *fstyle, const char *string, size_t length, int x, size_t *char_offset, int *actual_x)
int delete_font_plotter(FONT_PLOTTER p)
void(* _fpmf_draw_glyph)(FONT_PLOTTER self, GRECT *clip, GRECT *loc, uint8_t *pixdata, int pitch, uint32_t colour)
struct s_font_plotter * FONT_PLOTTER
int(* _fpmf_str_width)(FONT_PLOTTER self, const plot_font_style_t *fstyle, const char *str, size_t length, int *width)
int(* _fpmf_dtor)(FONT_PLOTTER self)
int(* ctor)(FONT_PLOTTER self)
_fpmf_str_width str_width
_fpmf_str_split str_split
_fpmf_draw_glyph draw_glyph
_fpmf_pixel_pos pixel_pos
uint32_t colour
Colour type: XBGR.
static nserror text(const struct redraw_context *ctx, const struct plot_font_style *fstyle, int x, int y, const char *text, size_t length)
Text plotting.
static nserror clip(const struct redraw_context *ctx, const struct rect *clip)
Sets a clip rectangle for subsequent plot operations.