comparison libvo/font_load.h @ 7140:b9ce54c7f30f

add Jindrich Makovicka <makovick@KMLinux.fjfi.cvut.cz> freetype patch
author pontscho
date Thu, 29 Aug 2002 17:35:21 +0000
parents 0dc9cb756b68
children 379852905f31
comparison
equal deleted inserted replaced
7139:dd1e21e775b6 7140:b9ce54c7f30f
14 int current_count, current_alloc; 14 int current_count, current_alloc;
15 #endif 15 #endif
16 } raw_file; 16 } raw_file;
17 17
18 typedef struct { 18 typedef struct {
19 #ifdef HAVE_FREETYPE
20 int dynamic;
21 #endif
19 char *name; 22 char *name;
20 char *fpath; 23 char *fpath;
21 int spacewidth; 24 int spacewidth;
22 int charspace; 25 int charspace;
23 int height; 26 int height;
45 int o_w; 48 int o_w;
46 int o_size; 49 int o_size;
47 unsigned volume; 50 unsigned volume;
48 51
49 unsigned *g; 52 unsigned *g;
50 unsigned *gt;
51 unsigned *gt2; 53 unsigned *gt2;
52 unsigned *om; 54 unsigned *om;
53 unsigned char *omt; 55 unsigned char *omt;
54 unsigned short *tmp; 56 unsigned short *tmp;
55 } tables; 57 } tables;
74 extern int force_load_font; 76 extern int force_load_font;
75 77
76 int init_freetype(); 78 int init_freetype();
77 int done_freetype(); 79 int done_freetype();
78 80
79 font_desc_t* read_font_desc(char* fname,float factor,int movie_width, int movie_height); 81 font_desc_t* read_font_desc(char* fname,int movie_width, int movie_height);
80 void free_font_desc(font_desc_t *desc); 82 void free_font_desc(font_desc_t *desc);
81 83
82 void render_one_glyph(font_desc_t *desc, int c); 84 void render_one_glyph(font_desc_t *desc, int c);
83 int kerning(font_desc_t *desc, int prevc, int c); 85 int kerning(font_desc_t *desc, int prevc, int c);
84 86
87 #else 89 #else
88 90
89 raw_file* load_raw(char *name,int verbose); 91 raw_file* load_raw(char *name,int verbose);
90 font_desc_t* read_font_desc(char* fname,float factor,int verbose); 92 font_desc_t* read_font_desc(char* fname,float factor,int verbose);
91 93
92 static void inline render_one_glyph(font_desc_t *desc, int c) 94 extern void inline render_one_glyph(font_desc_t *desc, int c)
93 { 95 {
94 } 96 }
95 97
96 static int inline kerning(font_desc_t *desc, int prevc, int c) 98 extern int inline kerning(font_desc_t *desc, int prevc, int c)
97 { 99 {
98 return 0; 100 return 0;
99 } 101 }
100 102
101 static void inline load_font(int width, int height) 103 extern void inline load_font(int width, int height)
102 { 104 {
103 } 105 }
104 106
105 #endif 107 #endif
106 108