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