| | 84 | #define FONT_TEXT N_("Font") |
|---|
| | 85 | #define FONT_LONGTEXT N_("Name for the font you want to use") |
|---|
| | 86 | #define FONTSIZER_TEXT N_("Relative font size") |
|---|
| | 87 | #define FONTSIZER_LONGTEXT N_("This is the relative default size of the " \ |
|---|
| | 88 | "fonts that will be rendered on the video. If absolute font size is set, "\ |
|---|
| | 89 | "relative size will be overriden." ) |
|---|
| | 90 | #define COLOR_TEXT N_("Text default color") |
|---|
| | 91 | #define COLOR_LONGTEXT N_("The color of the text that will be rendered on "\ |
|---|
| | 92 | "the video. This must be an hexadecimal (like HTML colors). The first two "\ |
|---|
| | 93 | "chars are for red, then green, then blue. #000000 = black, #FF0000 = red,"\ |
|---|
| | 94 | " #00FF00 = green, #FFFF00 = yellow (red + green), #FFFFFF = white" ) |
|---|
| | 95 | |
|---|
| | 96 | static const int pi_color_values[] = { |
|---|
| | 97 | 0x00000000, 0x00808080, 0x00C0C0C0, 0x00FFFFFF, 0x00800000, |
|---|
| | 98 | 0x00FF0000, 0x00FF00FF, 0x00FFFF00, 0x00808000, 0x00008000, 0x00008080, |
|---|
| | 99 | 0x0000FF00, 0x00800080, 0x00000080, 0x000000FF, 0x0000FFFF }; |
|---|
| | 100 | |
|---|
| | 101 | static const char *const ppsz_color_descriptions[] = { |
|---|
| | 102 | N_("Black"), N_("Gray"), N_("Silver"), N_("White"), N_("Maroon"), |
|---|
| | 103 | N_("Red"), N_("Fuchsia"), N_("Yellow"), N_("Olive"), N_("Green"), N_("Teal"), |
|---|
| | 104 | N_("Lime"), N_("Purple"), N_("Navy"), N_("Blue"), N_("Aqua") }; |
|---|
| | 105 | |
|---|
| | 106 | static const int pi_sizes[] = { 20, 18, 16, 12, 6 }; |
|---|
| | 107 | static const char *const ppsz_sizes_text[] = { |
|---|
| | 108 | N_("Smaller"), N_("Small"), N_("Normal"), N_("Large"), N_("Larger") }; |
|---|
| | 109 | |
|---|
| | 116 | add_string( "quartztext-font", DEFAULT_FONT, NULL, FONT_TEXT, FONT_LONGTEXT, |
|---|
| | 117 | false ); |
|---|
| | 118 | add_integer( "quartztext-rel-fontsize", DEFAULT_REL_FONT_SIZE, NULL, FONTSIZER_TEXT, |
|---|
| | 119 | FONTSIZER_LONGTEXT, false ); |
|---|
| | 120 | change_integer_list( pi_sizes, ppsz_sizes_text, 0 ); |
|---|
| | 121 | add_integer( "quartztext-color", 0x00FFFFFF, NULL, COLOR_TEXT, |
|---|
| | 122 | COLOR_LONGTEXT, false ); |
|---|
| | 123 | change_integer_list( pi_color_values, ppsz_color_descriptions, 0 ); |
|---|