Rev 5499 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5499 | Rev 5515 | ||
---|---|---|---|
Line 1... | Line -... | ||
1 | //ýòî âñòàâèòü ïîñëå çàãðóçêè îñíîâíûõ áèáëèîòåê |
- | |
2 | - | ||
3 | char fontinfo[28]; |
1 | char fontinfo[28]; |
Line 4... | Line 2... | ||
4 | 2 | ||
Line 5... | Line 3... | ||
5 | dword libtruetype = #att; |
3 | dword libtruetype = #att_libtruetype; |
Line 6... | Line 4... | ||
6 | 4 | ||
7 | char att[] = "/sys/lib/truetype.obj"; //"truetype.obj\0"; |
5 | char att_libtruetype[22] = "/sys/lib/truetype.obj\0"; |
8 | 6 | ||
- | 7 | dword truetype = #att_truetype; // truetype(unsigned char *s, stbtt_fontinfo *buffer, char *screen1, int width, int height) |
|
9 | dword truetype = #att_truetype; |
8 | dword get_length = #att_get_length; // get_length(unsigned char *s, char *buffer, int height, int max_len) |
- | 9 | dword get_width = #att_get_width; // get_width_utf8(unsigned char *s, stbtt_fontinfo *buffer, int height) |
|
10 | dword get_length = #att_get_length; |
10 | dword text_out = #att_text_out; // text_out(unsigned char *string, char *buffer, int height, int color,int back_color, int x, int y) |
11 | dword get_width = #att_get_width; |
11 | dword init_font = #att_init_font; // init_font(stbtt_fontinfo *font,unsigned char *FontData) |
Line 12... | Line -... | ||
12 | dword text_out = #att_text_out; |
- | |
13 | dword init_font = #att_init_font; |
- | |
14 | $DD 2 dup 0 |
12 | dword text_out_mem = #att_text_out_mem; // text_out_mem(unsigned char *string, stbtt_fontinfo *buffer, int height, int color,int back_color) |
15 | 13 | dword text_scale_EM = #att_text_scale; // scale_EM(stbtt_fontinfo *buffer, int size) |
|
16 | //import libimg , \ |
14 | $DD 2 dup 0 |
17 | 15 | ||
18 | char att_truetype[] = "truetype"; |
16 | char att_truetype[] = "truetype"; |
- | 17 | char att_get_length[] = "get_length"; |
|
- | 18 | char att_get_width[] = "get_width"; |
|
Line -... | Line 19... | ||
- | 19 | char att_text_out[] = "text_out"; |
|
19 | char att_get_length[] = "get_length"; |
20 | char att_init_font[] = "init_font"; |
Line -... | Line 21... | ||
- | 21 | char att_text_out_mem[] = "text_out_mem"; |
|
- | 22 | char att_text_scale[] = "scale_EM"; |
|
- | 23 | ||
20 | char att_get_width[] = "get_width"; |
24 | //============================================================ |
21 | char att_text_out[] = "text_out"; |
25 | //============================================================ |
- | 26 | ||
- | 27 | struct stbtt_fontinfo |
|
- | 28 | { |
|
- | 29 | dword userdata; |
|
- | 30 | dword data; // pointer to .ttf file |
|
- | 31 | int fontstart; // offset of start of font |
|
- | 32 |