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