1 #ifndef MPLAYER_FONT_LOAD_H
2 #define MPLAYER_FONT_LOAD_H
14 int charwidth
,charheight
,pen
,baseline
,padding
;
15 int current_count
, current_alloc
;
33 int start
[65536]; // short is not enough for unicode fonts
41 FT_UInt glyph_index
[65536];
43 int max_width
, max_height
;
64 extern font_desc_t
* vo_font
;
65 extern font_desc_t
* sub_font
;
69 extern char *subtitle_font_encoding
;
70 extern float text_font_scale_factor
;
71 extern float osd_font_scale_factor
;
72 extern float subtitle_font_radius
;
73 extern float subtitle_font_thickness
;
74 extern int subtitle_autoscale
;
76 extern int vo_image_width
;
77 extern int vo_image_height
;
79 extern int force_load_font
;
81 int init_freetype(void);
82 int done_freetype(void);
84 font_desc_t
* read_font_desc_ft(const char* fname
,int movie_width
, int movie_height
);
85 void free_font_desc(font_desc_t
*desc
);
87 void render_one_glyph(font_desc_t
*desc
, int c
);
88 int kerning(font_desc_t
*desc
, int prevc
, int c
);
90 void load_font_ft(int width
, int height
, font_desc_t
**desc
, const char *name
);
92 void blur(unsigned char *buffer
, unsigned short *tmp2
, int width
, int height
,
93 int stride
, int *m2
, int r
, int mwidth
);
97 static void render_one_glyph(font_desc_t
*desc
, int c
) {}
98 static int kerning(font_desc_t
*desc
, int prevc
, int c
) { return 0; }
102 raw_file
* load_raw(char *name
,int verbose
);
103 font_desc_t
* read_font_desc(const char* fname
,float factor
,int verbose
);
105 #endif /* ! MPLAYER_FONT_LOAD_H */