Fix doc path
[opentx.git] / radio / src / fonts.h
blob4a134e58f022511dd070336a276d51a091c06b0b
1 /*
2 * Copyright (C) OpenTX
4 * Based on code named
5 * th9x - http://code.google.com/p/th9x
6 * er9x - http://code.google.com/p/er9x
7 * gruvin9x - http://code.google.com/p/gruvin9x
9 * License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License version 2 as
13 * published by the Free Software Foundation.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
21 #ifndef _FONTS_H_
22 #define _FONTS_H_
24 #if defined(COLORLCD)
26 #if !defined(BOOT)
27 extern const uint16_t * const fontspecsTable[16];
28 extern const uint8_t * const fontsTable[16];
29 #else
30 extern const uint16_t * const fontspecsTable[1];
31 extern const uint8_t * const fontsTable[1];
32 #endif
34 #if defined(PCBHORUS)
35 extern BitmapBuffer * fontCache[2];
36 void loadFontCache();
37 #endif
39 #else
41 extern const pm_uchar font_5x7[];
42 extern const pm_uchar font_10x14[];
44 #if defined(BOLD_FONT) && ((!defined(CPUM64) && !defined(PCBMEGA2560)) || defined(TELEMETRY_NONE)) && !defined(BOOT)
45 #define BOLD_SPECIFIC_FONT
46 extern const pm_uchar font_5x7_B[];
47 #endif
49 #if defined(CPUARM)
50 extern const pm_uchar font_3x5[];
51 extern const pm_uchar font_4x6[];
52 extern const pm_uchar font_8x10[];
53 extern const pm_uchar font_22x38_num[];
54 extern const pm_uchar font_5x7_extra[];
55 extern const pm_uchar font_10x14_extra[];
56 extern const pm_uchar font_4x6_extra[];
57 #endif
59 #endif
61 #endif // _FONTS_H_