diff options
author | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-01-06 16:44:47 +0000 |
---|---|---|
committer | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-01-06 16:44:47 +0000 |
commit | d3b5452f49adfb4f41b9e62ae9aee30387e0f563 (patch) | |
tree | c75b323824d01fff2699f4da2792906ccacc262f /libvo/font_load.h | |
parent | 575766b8a7f622b6f0454f7aa2a2247800bf45d3 (diff) | |
download | mpv-d3b5452f49adfb4f41b9e62ae9aee30387e0f563.tar.bz2 mpv-d3b5452f49adfb4f41b9e62ae9aee30387e0f563.tar.xz |
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.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28276 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/font_load.h')
-rw-r--r-- | libvo/font_load.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/font_load.h b/libvo/font_load.h index ad355e6b4c..532476e6d6 100644 --- a/libvo/font_load.h +++ b/libvo/font_load.h @@ -79,7 +79,7 @@ extern int force_load_font; 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); |