-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfont.h
32 lines (21 loc) · 1.75 KB
/
font.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef __FONT_H_
#define __FONT_H_
#include "fontheader.h"
#include "warpfunc.h"
#include "Graphics/Bitmap.h"
#define FONT_SIZE_LOG2 7
void clip_text(char** text, point_t *pos, int size, const glyph_t* font, int xmin, int xmax);
void render_text(Bitmap *dest, char* text, point_t pos, int size, const glyph_t* font);
void render_text_floodfilled(Bitmap *dest, char* text, point_t pos, int size, const glyph_t* font, uint8_t color_border, uint8_t color_fill);
int render_text_getbeziers(bezier_t *dest, int destsize, char* text, point_t pos, int size, const glyph_t* font);
void render_text_partial(Bitmap *dest, char* text, point_t pos, int size, const glyph_t* font, int percent);
void get_text_points(point_t *dest, int *destsize, char* text, point_t pos, int size, const glyph_t* font, bool first);
void render_text_partial_warped(Bitmap *dest, char* text, point_t pos, int size, const glyph_t* font, int percent, warpfunc_t warpfunc, int time);
void render_text_warped(Bitmap *dest, char* text, point_t pos, int size, const glyph_t* font, warpfunc_t warpfunc, int t);
void render_text_warped_floodfilled(Bitmap *dest, char* text, point_t pos, int size, const glyph_t* font, warpfunc_t warpfunc, int t, uint8_t color_border, uint8_t color_fill);
void render_text_warped_colored(Bitmap *dest, char* text, point_t pos, int size, const glyph_t* font, warpfunc_t warpfunc, int t, uint8_t color);
void get_text_points_warped(point_t *dest, int *destsize, char* text, point_t pos, int size, const glyph_t* font, bool first, warpfunc_t warpfunc, int time);
void make_transition(Bitmap *dest, point_t *startpts, int startsize, point_t *endpts, int endsize, int percent);
//void text_to_paths(path_t *dest, char* text, point_t pos, int size, const glyph_t* font);
//
#endif //__FONT_H_