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