The Battle for Wesnoth  1.15.12+dev
constants.cpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2008 - 2018 by Mark de Wever <koraq@xs4all.nl>
3  Part of the Battle for Wesnoth Project https://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 = 17;
20 
21 const int
22  SIZE_TINY = 13 * (SIZE_NORMAL / 17),
23  SIZE_SMALL = 15 * (SIZE_NORMAL / 17),
24  SIZE_BUTTON = 16 * (SIZE_NORMAL / 17),
25  SIZE_BUTTON_SMALL = 14 * (SIZE_NORMAL / 17),
26 
27  SIZE_15 = 15 * (SIZE_NORMAL / 17),
28  SIZE_PLUS = 18 * (SIZE_NORMAL / 17),
29  SIZE_LARGE = 20 * (SIZE_NORMAL / 17),
30  SIZE_TITLE = 22 * (SIZE_NORMAL / 17),
31  SIZE_FLOAT_LABEL = 24 * (SIZE_NORMAL / 17),
32  SIZE_XLARGE = 36 * (SIZE_NORMAL / 17)
33 ;
34 
35 const std::size_t max_text_line_width = 4096;
36 
37 const std::string
38  ellipsis = "...",
39  nbsp = " ", // non-breaking space; unicode u00a0
40 
42  unicode_en_dash = "–", // unicode u2013
43  unicode_em_dash = "—", // unicode u2014
44  unicode_figure_dash = "‒", // unicode u2012
46  unicode_bullet = "•", // unicode u2022
47 
50 
51 } // end namespace font
const std::string weapon_details_sep
Definition: constants.cpp:49
Collection of helper functions relating to Pango formatting.
const int SIZE_BUTTON_SMALL
Definition: constants.cpp:25
const int SIZE_PLUS
Definition: constants.cpp:28
const int SIZE_NORMAL
Definition: constants.cpp:19
const int SIZE_XLARGE
Definition: constants.cpp:32
const std::string unicode_minus
Definition: constants.cpp:41
const std::string ellipsis
Definition: constants.cpp:38
const int SIZE_15
Definition: constants.cpp:27
const std::string unicode_multiplication_sign
Definition: constants.cpp:45
const std::size_t max_text_line_width
Definition: constants.cpp:35
const int SIZE_BUTTON
Definition: constants.cpp:24
const std::string unicode_figure_dash
Definition: constants.cpp:44
const std::string unicode_en_dash
Definition: constants.cpp:42
const std::string unicode_bullet
Definition: constants.cpp:46
const int SIZE_TITLE
Definition: constants.cpp:30
const std::string nbsp
Definition: constants.cpp:39
const int SIZE_LARGE
Definition: constants.cpp:29
const std::string weapon_numbers_sep
Definition: constants.cpp:48
const std::string unicode_em_dash
Definition: constants.cpp:43
const int SIZE_FLOAT_LABEL
Definition: constants.cpp:31
const int SIZE_SMALL
Definition: constants.cpp:23
const int SIZE_TINY
Definition: constants.cpp:22