Mercurial > mplayer.hg
diff libvo/font_load.h @ 8635:81dbd28ef7c0
these patches let ,,oldstyle'' and freetype subtitle renderers live
together happily. if an oldstyle subtitle (font.desc) is found, it will
be used. otherwise mplayer will choose subfont.ttf, if freetype was
detected during ./configure.
(also you can use -font /path/to/font.desc and -font /path/to/foobar.ttf too)
patch-set by Wojtek Kaniewski <wojtekka@bydg.pdi.net>
author | arpi |
---|---|
date | Sun, 29 Dec 2002 14:59:23 +0000 |
parents | 379852905f31 |
children | b4fcb6c47942 |
line wrap: on
line diff
--- a/libvo/font_load.h Sun Dec 29 14:36:56 2002 +0000 +++ b/libvo/font_load.h Sun Dec 29 14:59:23 2002 +0000 @@ -31,6 +31,7 @@ short font[65536]; int start[65536]; // short is not enough for unicode fonts short width[65536]; + int freetype; #ifdef HAVE_FREETYPE int face_cnt; @@ -78,23 +79,22 @@ int init_freetype(); int done_freetype(); -font_desc_t* read_font_desc(char* fname,int movie_width, int movie_height); +font_desc_t* read_font_desc_ft(char* fname,int movie_width, int movie_height); void free_font_desc(font_desc_t *desc); void render_one_glyph(font_desc_t *desc, int c); int kerning(font_desc_t *desc, int prevc, int c); -void load_font(int width, int height); +void load_font_ft(int width, int height); #else +static void render_one_glyph(font_desc_t *desc, int c) {} +static int kerning(font_desc_t *desc, int prevc, int c) { return 0; } + +#endif + raw_file* load_raw(char *name,int verbose); font_desc_t* read_font_desc(char* fname,float factor,int verbose); -static void inline render_one_glyph(font_desc_t *desc, int c) {} -static int inline kerning(font_desc_t *desc, int prevc, int c) { return 0; } -static void inline load_font(int width, int height){} - -#endif - #endif /* ! __MPLAYER_FONT_LOAD_H */