Mercurial > mplayer.hg
diff libvo/font_load.h @ 28241:898051d5d9b4
Support loading font faces other then the first one in a font file.
With -fontconfig, it is possible to select a face with index higher than
0 in a multi-face font file. Currently, with the old rendering code,
this information is lost and the first face is loaded. With this change,
index supplied by fontconfig is used for font loading.
Patch by Adrian Stutz, adrian sttz ch.
author | eugeni |
---|---|
date | Tue, 06 Jan 2009 16:44:47 +0000 |
parents | 56868e6fb340 |
children | 7681eab10aea |
line wrap: on
line diff
--- a/libvo/font_load.h Mon Jan 05 22:55:58 2009 +0000 +++ b/libvo/font_load.h Tue Jan 06 16:44:47 2009 +0000 @@ -79,7 +79,7 @@ int init_freetype(void); int done_freetype(void); -font_desc_t* read_font_desc_ft(const char* fname,int movie_width, int movie_height, float font_scale_factor); +font_desc_t* read_font_desc_ft(const char* fname,int face_index,int movie_width, int movie_height, float font_scale_factor); void free_font_desc(font_desc_t *desc); void render_one_glyph(font_desc_t *desc, int c);