Files
LED-Face-Mask/Middlewares/ST/touchgfx/framework/tools/textconvert/Templates/ApplicationFontProvider.hpp.temp
William Miceli c2f788aa3e Initial Commit
Blank working project
2020-08-05 17:53:34 -04:00

31 lines
847 B
Plaintext

/* DO NOT EDIT THIS FILE */
/* This file is autogenerated by the text-database code generator */
#ifndef APPLICATIONFONTPROVIDER_HPP
#define APPLICATIONFONTPROVIDER_HPP
#include <touchgfx/FontManager.hpp>
struct Typography
{
<% typographies.each_with_index do |typography, index| %>
static const touchgfx::FontId <%= typography.name.upcase %> = <%= index %>;
<% end %>
};
struct TypographyFontIndex
{
<% typographies.each_with_index do |typography, index| %>
static const touchgfx::FontId <%= typography.name.upcase %> = <%= font_index(index) %>; <%= font_comment(index) %>
<% end %>
static const uint16_t NUMBER_OF_FONTS = <%= max_font_index %>;
};
class ApplicationFontProvider : public touchgfx::FontProvider
{
public:
virtual touchgfx::Font* getFont(touchgfx::FontId typography);
};
#endif // APPLICATIONFONTPROVIDER_HPP