31 lines
847 B
Plaintext
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
|