]> git.sesse.net Git - vlc/blob - src/video_output/video_text.h
cc60e935730e4e4a7a32ffbfef51ea1810942416
[vlc] / src / video_output / video_text.h
1 /*****************************************************************************
2  * video_text.h : text manipulation functions
3  * (c)1999 VideoLAN
4  *****************************************************************************/
5
6 /* Text styles - these are primary text styles, used by the vout_Print function.
7  * They may be ignored or interpreted by higher level functions */
8 #define WIDE_TEXT                       1         /* interspacing is doubled */
9 #define ITALIC_TEXT                     2                          /* italic */
10 #define OPAQUE_TEXT                     4            /* text with background */
11 #define OUTLINED_TEXT                   8           /* border around letters */
12 #define VOID_TEXT                      16                   /* no foreground */
13
14
15 /*****************************************************************************
16  * Prototypes
17  *****************************************************************************/
18 p_vout_font_t   vout_LoadFont   ( const char *psz_name );
19 void            vout_UnloadFont ( p_vout_font_t p_font );
20 void            vout_TextSize   ( p_vout_font_t p_font, int i_style,
21                                   const char *psz_text,
22                                   int *pi_width, int *pi_height );
23 void            vout_Print      ( p_vout_font_t p_font, byte_t *p_pic,
24                                   int i_bytes_per_pixel, int i_bytes_per_line,
25                                   u32 i_char_color, u32 i_border_color, u32 i_bg_color,
26                                   int i_style, const char *psz_text );
27
28
29
30
31
32
33
34
35
36