55 lines
1.7 KiB
C++
55 lines
1.7 KiB
C++
/* DO NOT EDIT THIS FILE */
|
|
/* This file is autogenerated by the text-database code generator */
|
|
|
|
#ifndef TOUCHGFX_APPLICATIONFONTPROVIDER_HPP
|
|
#define TOUCHGFX_APPLICATIONFONTPROVIDER_HPP
|
|
|
|
#include <touchgfx/FontManager.hpp>
|
|
|
|
namespace touchgfx
|
|
{
|
|
class FlashDataReader;
|
|
}
|
|
|
|
struct Typography
|
|
{
|
|
static const touchgfx::FontId DEFAULT = 0;
|
|
static const touchgfx::FontId CHINAT_LARGE = 1;
|
|
static const touchgfx::FontId CHINAT_SMALL = 2;
|
|
static const touchgfx::FontId CHINAT_HUGE = 3;
|
|
static const touchgfx::FontId NUMBERS = 4;
|
|
static const touchgfx::FontId DEFAULT_BOLD = 5;
|
|
static const touchgfx::FontId NUMBERS_SMALLER = 6;
|
|
static const touchgfx::FontId NUMBERS_SMALL = 7;
|
|
};
|
|
|
|
struct TypographyFontIndex
|
|
{
|
|
static const touchgfx::FontId DEFAULT = 0; // verdana_20_4bpp
|
|
static const touchgfx::FontId CHINAT_LARGE = 1; // CHINN____30_4bpp
|
|
static const touchgfx::FontId CHINAT_SMALL = 2; // CHINN____20_4bpp
|
|
static const touchgfx::FontId CHINAT_HUGE = 3; // CHINN____40_4bpp
|
|
static const touchgfx::FontId NUMBERS = 4; // lucon_TTF_50_4bpp
|
|
static const touchgfx::FontId DEFAULT_BOLD = 5; // verdanab_20_4bpp
|
|
static const touchgfx::FontId NUMBERS_SMALLER = 6; // lucon_TTF_33_4bpp
|
|
static const touchgfx::FontId NUMBERS_SMALL = 7; // lucon_TTF_20_4bpp
|
|
static const uint16_t NUMBER_OF_FONTS = 8;
|
|
};
|
|
|
|
class ApplicationFontProvider : public touchgfx::FontProvider
|
|
{
|
|
public:
|
|
virtual touchgfx::Font* getFont(touchgfx::FontId typography);
|
|
|
|
static void setFlashReader(touchgfx::FlashDataReader* /*flashReader*/)
|
|
{
|
|
}
|
|
|
|
static touchgfx::FlashDataReader* getFlashReader()
|
|
{
|
|
return 0;
|
|
}
|
|
};
|
|
|
|
#endif // TOUCHGFX_APPLICATIONFONTPROVIDER_HPP
|