Changeset 171ad3314ef99d1d88ee1a31af8d79149d621118
- Timestamp:
- 30/03/07 15:29:15
(2 years ago)
- Author:
- Derk-Jan Hartman <hartman@videolan.org>
- git-committer:
- Derk-Jan Hartman <hartman@videolan.org> 1175261355 +0000
- git-parent:
[db7b0a56aa13250845c4721f3cabb72d975128d6]
- git-author:
- Derk-Jan Hartman <hartman@videolan.org> 1175261355 +0000
- Message:
* Missing part of previous commit [19535].
cleanup of freetype.c by Bernie Purcell
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rdb7b0a5 |
r171ad33 |
|
| 123 | 123 | |
|---|
| 124 | 124 | static int pi_sizes[] = { 20, 18, 16, 12, 6 }; |
|---|
| 125 | | static char *ppsz_sizes_text[] = { N_("Smaller"), N_("Small"), N_("Normal"), |
|---|
| 126 | | N_("Large"), N_("Larger") }; |
|---|
| | 125 | static const char *ppsz_sizes_text[] = { N_("Smaller"), N_("Small"), N_("Normal"), |
|---|
| | 126 | N_("Large"), N_("Larger") }; |
|---|
| 127 | 127 | #define YUVP_TEXT N_("Use YUVP renderer") |
|---|
| 128 | 128 | #define YUVP_LONGTEXT N_("This renders the font using \"paletized YUV\". " \ |
|---|
| … | … | |
| 137 | 137 | |
|---|
| 138 | 138 | static int pi_effects[] = { 1, 2, 3 }; |
|---|
| 139 | | static char *ppsz_effects_text[] = { N_("Background"),N_("Outline"), |
|---|
| 140 | | N_("Fat Outline") }; |
|---|
| | 139 | static const char *ppsz_effects_text[] = { N_("Background"),N_("Outline"), |
|---|
| | 140 | N_("Fat Outline") }; |
|---|
| 141 | 141 | static int pi_color_values[] = { |
|---|
| 142 | 142 | 0x00000000, 0x00808080, 0x00C0C0C0, 0x00FFFFFF, 0x00800000, |
|---|
| … | … | |
| 144 | 144 | 0x0000FF00, 0x00800080, 0x00000080, 0x000000FF, 0x0000FFFF }; |
|---|
| 145 | 145 | |
|---|
| 146 | | static char *ppsz_color_descriptions[] = { |
|---|
| | 146 | static const char *ppsz_color_descriptions[] = { |
|---|
| 147 | 147 | N_("Black"), N_("Gray"), N_("Silver"), N_("White"), N_("Maroon"), |
|---|
| 148 | 148 | N_("Red"), N_("Fuchsia"), N_("Yellow"), N_("Olive"), N_("Green"), N_("Teal"), |
|---|
| … | … | |
| 299 | 299 | GetWindowsDirectory( psz_fontfile, PATH_MAX + 1 ); |
|---|
| 300 | 300 | strcat( psz_fontfile, "\\fonts\\arial.ttf" ); |
|---|
| 301 | | #elif __APPLE__ |
|---|
| | 301 | #elif defined(__APPLE__) |
|---|
| 302 | 302 | strcpy( psz_fontfile, DEFAULT_FONT ); |
|---|
| 303 | 303 | #else |
|---|
| … | … | |
| 1141 | 1141 | |
|---|
| 1142 | 1142 | #ifdef HAVE_FONTCONFIG |
|---|
| 1143 | | static int PushFont( font_stack_t **p_font, char *psz_name, int i_size, |
|---|
| | 1143 | static int PushFont( font_stack_t **p_font, const char *psz_name, int i_size, |
|---|
| 1144 | 1144 | int i_color, int i_alpha ) |
|---|
| 1145 | 1145 | { |
|---|
| … | … | |
| 1315 | 1315 | FT_BBox glyph_size; |
|---|
| 1316 | 1316 | |
|---|
| 1317 | | FT_Glyph_Get_CBox( p_line->pp_glyphs[ i ], ft_glyph_bbox_pixels, &glyph_size ); |
|---|
| | 1317 | FT_Glyph_Get_CBox( (FT_Glyph) p_line->pp_glyphs[ i ], ft_glyph_bbox_pixels, &glyph_size ); |
|---|
| 1318 | 1318 | |
|---|
| 1319 | 1319 | line.xMax = p_line->p_glyph_pos[ i ].x + glyph_size.xMax - |
|---|
| … | … | |
| 1483 | 1483 | else |
|---|
| 1484 | 1484 | { |
|---|
| 1485 | | PushFont( &p_fonts, FC_DEFAULT_FONT, 24, 0xffffff, 0 ); |
|---|
| | 1485 | PushFont( &p_fonts, FC_DEFAULT_FONT, p_sys->i_font_size, 0xffffff, 0 ); |
|---|
| 1486 | 1486 | } |
|---|
| 1487 | 1487 | |
|---|
| … | … | |
| 1732 | 1732 | |
|---|
| 1733 | 1733 | p_sub = stream_MemoryNew( VLC_OBJECT(p_filter), |
|---|
| 1734 | | p_region_in->psz_html, |
|---|
| | 1734 | (uint8_t *) p_region_in->psz_html, |
|---|
| 1735 | 1735 | strlen( p_region_in->psz_html ), |
|---|
| 1736 | 1736 | VLC_TRUE ); |
|---|