diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-20 08:29:20 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-20 08:29:20 +0300 |
commit | a0ba9e3321212a5800e6c1076b30d5b85151dd3f (patch) | |
tree | 838832b2c49b4cddd3370363d9dd05ec43d9d40e /src/ui/text.h | |
parent | 0553b539d18d9af82a5a8449f1a9d27911eacd0c (diff) |
Text: Slightly smaller first paragraph font size
Added a new 1.2x font size and use it for first paragraphs.
Diffstat (limited to 'src/ui/text.h')
-rw-r--r-- | src/ui/text.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/ui/text.h b/src/ui/text.h index 9a22620f..116aab2c 100644 --- a/src/ui/text.h +++ b/src/ui/text.h | |||
@@ -27,17 +27,21 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | |||
27 | 27 | ||
28 | #include <SDL_render.h> | 28 | #include <SDL_render.h> |
29 | 29 | ||
30 | /* Size names: regular (1x) -> medium (1.2x) -> big (1.33x) -> large (1.67x) -> huge (2x) */ | ||
31 | |||
30 | enum iFontId { | 32 | enum iFontId { |
31 | default_FontId, | 33 | default_FontId, |
32 | defaultMedium_FontId, | 34 | defaultMedium_FontId, |
33 | defaultMonospace_FontId, | 35 | defaultMonospace_FontId, |
36 | /* content fonts */ | ||
34 | regular_FontId, | 37 | regular_FontId, |
35 | monospace_FontId, | 38 | monospace_FontId, |
36 | monospaceSmall_FontId, | 39 | monospaceSmall_FontId, |
37 | medium_FontId, | 40 | medium_FontId, |
41 | big_FontId, | ||
38 | italic_FontId, | 42 | italic_FontId, |
39 | bold_FontId, | 43 | bold_FontId, |
40 | mediumBold_FontId, | 44 | bigBold_FontId, |
41 | largeBold_FontId, | 45 | largeBold_FontId, |
42 | hugeBold_FontId, | 46 | hugeBold_FontId, |
43 | largeLight_FontId, | 47 | largeLight_FontId, |
@@ -46,6 +50,7 @@ enum iFontId { | |||
46 | defaultMediumSymbols_FontId, | 50 | defaultMediumSymbols_FontId, |
47 | symbols_FontId, | 51 | symbols_FontId, |
48 | mediumSymbols_FontId, | 52 | mediumSymbols_FontId, |
53 | bigSymbols_FontId, | ||
49 | largeSymbols_FontId, | 54 | largeSymbols_FontId, |
50 | hugeSymbols_FontId, | 55 | hugeSymbols_FontId, |
51 | smallSymbols_FontId, | 56 | smallSymbols_FontId, |
@@ -54,6 +59,7 @@ enum iFontId { | |||
54 | defaultMediumEmoji_FontId, | 59 | defaultMediumEmoji_FontId, |
55 | emoji_FontId, | 60 | emoji_FontId, |
56 | mediumEmoji_FontId, | 61 | mediumEmoji_FontId, |
62 | bigEmoji_FontId, | ||
57 | largeEmoji_FontId, | 63 | largeEmoji_FontId, |
58 | hugeEmoji_FontId, | 64 | hugeEmoji_FontId, |
59 | smallEmoji_FontId, | 65 | smallEmoji_FontId, |
@@ -61,12 +67,13 @@ enum iFontId { | |||
61 | smallJapanese_FontId, | 67 | smallJapanese_FontId, |
62 | regularJapanese_FontId, | 68 | regularJapanese_FontId, |
63 | mediumJapanese_FontId, | 69 | mediumJapanese_FontId, |
70 | bigJapanese_FontId, | ||
64 | largeJapanese_FontId, | 71 | largeJapanese_FontId, |
65 | hugeJapanese_FontId, | 72 | hugeJapanese_FontId, |
66 | max_FontId, | 73 | max_FontId, |
67 | 74 | ||
68 | /* Meta: */ | 75 | /* Meta: */ |
69 | fromSymbolsToEmojiOffset_FontId = 7, | 76 | fromSymbolsToEmojiOffset_FontId = 8, |
70 | 77 | ||
71 | /* UI fonts: */ | 78 | /* UI fonts: */ |
72 | uiLabel_FontId = default_FontId, | 79 | uiLabel_FontId = default_FontId, |
@@ -81,7 +88,7 @@ enum iFontId { | |||
81 | quote_FontId = italic_FontId, | 88 | quote_FontId = italic_FontId, |
82 | heading1_FontId = hugeBold_FontId, | 89 | heading1_FontId = hugeBold_FontId, |
83 | heading2_FontId = largeBold_FontId, | 90 | heading2_FontId = largeBold_FontId, |
84 | heading3_FontId = medium_FontId, | 91 | heading3_FontId = big_FontId, |
85 | banner_FontId = largeLight_FontId, | 92 | banner_FontId = largeLight_FontId, |
86 | }; | 93 | }; |
87 | 94 | ||