1 /*****************************************************************************
2 * video_text.h : text manipulation functions
3 *****************************************************************************
4 * Copyright (C) 1999, 2000 VideoLAN
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
21 *****************************************************************************/
23 /* Text styles - these are primary text styles, used by the vout_Print function.
24 * They may be ignored or interpreted by higher level functions */
25 #define WIDE_TEXT 1 /* interspacing is doubled */
26 #define ITALIC_TEXT 2 /* italic */
27 #define OPAQUE_TEXT 4 /* text with background */
28 #define OUTLINED_TEXT 8 /* border around letters */
29 #define VOID_TEXT 16 /* no foreground */
32 /*****************************************************************************
34 *****************************************************************************/
35 p_vout_font_t vout_LoadFont ( const char *psz_name );
36 void vout_UnloadFont ( p_vout_font_t p_font );
37 void vout_TextSize ( p_vout_font_t p_font, int i_style,
39 int *pi_width, int *pi_height );
40 void vout_Print ( p_vout_font_t p_font, byte_t *p_pic,
41 int i_bytes_per_pixel, int i_bytes_per_line,
42 u32 i_char_color, u32 i_border_color, u32 i_bg_color,
43 int i_style, const char *psz_text );