1 #include <ft2build.h>
2 #include FT_FREETYPE_H
3 #include FT_GLYPH_H
4 
5 extern int visible;
6 
7 void shadow_render(gfxstate *gfx);
8 void shadow_clear_lines(int first, int last);
9 void shadow_clear(void);
10 void shadow_set_dirty(void);
11 void shadow_set_palette(int fd);
12 void shadow_init(gfxstate *gfx);
13 void shadow_fini(void);
14 
15 void shadow_draw_line(int x1, int x2, int y1,int y2);
16 void shadow_draw_rect(int x1, int x2, int y1,int y2);
17 void shadow_draw_rgbdata(int x, int y, int pixels,
18 			 unsigned char *rgb);
19 void shadow_merge_rgbdata(int x, int y, int pixels, int weight,
20 			  unsigned char *rgb);
21 void shadow_darkify(int x1, int x2, int y1,int y2, int percent);
22 void shadow_reverse(int x1, int x2, int y1,int y2);
23 
24 int  shadow_draw_string(FT_Face face, int x, int y, wchar_t *str, int align);
25 void shadow_draw_string_cursor(FT_Face face, int x, int y, wchar_t *str, int pos);
26 void shadow_draw_text_box(FT_Face face, int x, int y, int percent,
27 			  wchar_t *lines[], unsigned int count);
28 
29 void font_init(void);
30 FT_Face font_open(char *fcname);
31