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