steering-wheel/TouchGFX/generated/fonts/src/ApplicationFontProvider.cpp

43 lines
1.6 KiB
C++

/* DO NOT EDIT THIS FILE */
/* This file is autogenerated by the text-database code generator */
#include <fonts/ApplicationFontProvider.hpp>
#include <fonts/GeneratedFont.hpp>
#include <texts/TypedTextDatabase.hpp>
touchgfx::Font* ApplicationFontProvider::getFont(touchgfx::FontId typography)
{
switch (typography)
{
case Typography::DEFAULT:
// verdana_20_4bpp
return const_cast<touchgfx::Font*>(TypedTextDatabase::getFonts()[0]);
case Typography::CHINAT_LARGE:
// CHINN____30_4bpp
return const_cast<touchgfx::Font*>(TypedTextDatabase::getFonts()[1]);
case Typography::CHINAT_SMALL:
// CHINN____20_4bpp
return const_cast<touchgfx::Font*>(TypedTextDatabase::getFonts()[2]);
case Typography::CHINAT_HUGE:
// CHINN____40_4bpp
return const_cast<touchgfx::Font*>(TypedTextDatabase::getFonts()[3]);
case Typography::NUMBERS:
// lucon_TTF_50_4bpp
return const_cast<touchgfx::Font*>(TypedTextDatabase::getFonts()[4]);
case Typography::DEFAULT_BOLD:
// verdanab_20_4bpp
return const_cast<touchgfx::Font*>(TypedTextDatabase::getFonts()[5]);
case Typography::NUMBERS_SMALLER:
// lucon_TTF_33_4bpp
return const_cast<touchgfx::Font*>(TypedTextDatabase::getFonts()[6]);
case Typography::NUMBERS_SMALL:
// lucon_TTF_20_4bpp
return const_cast<touchgfx::Font*>(TypedTextDatabase::getFonts()[7]);
case Typography::NUMBERS_HUGE:
// lucon_TTF_80_4bpp
return const_cast<touchgfx::Font*>(TypedTextDatabase::getFonts()[8]);
default:
return 0;
}
}