FabGL
ESP32 Display Controller and Graphics Library
fabfonts.h
1 /*
2  Created by Fabrizio Di Vittorio (fdivitto2013@gmail.com) - <http://www.fabgl.com>
3  Copyright (c) 2019-2020 Fabrizio Di Vittorio.
4  All rights reserved.
5 
6  This file is part of FabGL Library.
7 
8  FabGL is free software: you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation, either version 3 of the License, or
11  (at your option) any later version.
12 
13  FabGL is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with FabGL. If not, see <http://www.gnu.org/licenses/>.
20  */
21 
22 
23 
24 #pragma once
25 
26 
27 #include "fabutils.h"
28 #include "fabglconf.h"
29 
30 
31 // Embedded fonts
32 
33 // fixed width
34 #include "fonts/font_4x6.h"
35 #include "fonts/font_5x7.h"
36 #include "fonts/font_5x8.h"
37 #include "fonts/font_6x8.h"
38 #include "fonts/font_6x9.h"
39 #include "fonts/font_6x10.h"
40 #include "fonts/font_6x12.h"
41 #include "fonts/font_6x13.h"
42 #include "fonts/font_7x13.h"
43 #include "fonts/font_7x14.h"
44 #include "fonts/font_8x13.h"
45 #include "fonts/font_8x8.h"
46 #include "fonts/font_8x9.h"
47 #include "fonts/font_8x14.h"
48 #include "fonts/font_8x16.h"
49 #include "fonts/font_8x19.h"
50 #include "fonts/font_9x15.h"
51 #include "fonts/font_9x18.h"
52 #include "fonts/font_10x20.h"
53 
54 #include "fonts/font_slant_8x14.h"
55 #include "fonts/font_sanserif_8x16.h"
56 #include "fonts/font_sanserif_8x14.h"
57 #include "fonts/font_lcd_8x14.h"
58 #include "fonts/font_courier_8x14.h"
59 #include "fonts/font_computer_8x14.h"
60 #include "fonts/font_bigserif_8x14.h"
61 #include "fonts/font_bigserif_8x16.h"
62 #include "fonts/font_block_8x14.h"
63 #include "fonts/font_broadway_8x14.h"
64 #include "fonts/font_oldengl_8x16.h"
65 #include "fonts/font_wiggly_8x16.h"
66 
67 
68 
69 // variable width
70 #include "fonts/font_std_12.h"
71 #include "fonts/font_std_14.h"
72 #include "fonts/font_std_15.h"
73 #include "fonts/font_std_16.h"
74 #include "fonts/font_std_17.h"
75 #include "fonts/font_std_18.h"
76 #include "fonts/font_std_22.h"
77 #include "fonts/font_std_24.h"
78 
79 
80 namespace fabgl {
81 
82 
83 
96 FontInfo const * getPresetFontInfo(int viewPortWidth, int viewPortHeight, int columns, int rows);
97 
98 
107 FontInfo const * getPresetFontInfoFromHeight(int height, bool fixedWidth);
108 
109 
118 FontInfo const * getPresetFixedFont(int width, int height);
119 
120 
121 };
This file contains some utility classes and functions.
Definition: canvas.cpp:31
This file contains FabGL library configuration settings, like number of supported colors...
uint8_t height
uint8_t width