The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
constants.cpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2008 - 2017 by Mark de Wever <koraq@xs4all.nl>
3  Part of the Battle for Wesnoth Project http://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 #include "font/constants.hpp"
16 
17 namespace font {
18 
19 const int SIZE_NORMAL = 14;
20 
21 const int
22  SIZE_TINY = 10 * SIZE_NORMAL / 14,
23  SIZE_SMALL = 12 * SIZE_NORMAL / 14,
24 
25  SIZE_15 = 15 * SIZE_NORMAL / 14,
26  SIZE_PLUS = 16 * SIZE_NORMAL / 14,
27  SIZE_LARGE = 18 * SIZE_NORMAL / 14,
28  SIZE_TITLE = 20 * SIZE_NORMAL / 14,
29  SIZE_XLARGE = 24 * SIZE_NORMAL / 14
30 ;
31 
32 const size_t max_text_line_width = 4096;
33 
34 const std::string
35  ellipsis = "...",
36 
38  unicode_en_dash = "–", // unicode u2013
39  unicode_em_dash = "—", // unicode u2014
40  unicode_figure_dash = "‒", // unicode u2012
42  unicode_bullet = "•", // unicode u2022
43 
46 
47 } // end namespace font
std::vector< char_t > string
const std::string weapon_details_sep
Definition: constants.cpp:45
Note: Specific to sdl_ttf.
const int SIZE_PLUS
Definition: constants.cpp:26
const size_t max_text_line_width
Definition: constants.cpp:32
const int SIZE_NORMAL
Definition: constants.cpp:19
const int SIZE_XLARGE
Definition: constants.cpp:29
const std::string unicode_minus
Definition: constants.cpp:37
const std::string ellipsis
Definition: constants.cpp:35
const int SIZE_15
Definition: constants.cpp:25
const std::string unicode_multiplication_sign
Definition: constants.cpp:41
const std::string unicode_figure_dash
Definition: constants.cpp:40
const std::string unicode_en_dash
Definition: constants.cpp:38
const std::string unicode_bullet
Definition: constants.cpp:42
const int SIZE_TITLE
Definition: constants.cpp:28
const int SIZE_LARGE
Definition: constants.cpp:27
const std::string weapon_numbers_sep
Definition: constants.cpp:44
const std::string unicode_em_dash
Definition: constants.cpp:39
const int SIZE_SMALL
Definition: constants.cpp:23
const int SIZE_TINY
Definition: constants.cpp:22