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

25 lines
743 B
Plaintext

/* 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)
{
<% if typographies.empty? %>
return 0;
<% else %>
switch (typography)
{
<% typographies.each_with_index do |typography, index| %>
case Typography::<%= typography.name.upcase %>:
// <%= typography.cpp_name %>_<%= typography.font_size %>_<%= typography.bpp %>bpp
return const_cast<touchgfx::Font*>(TypedTextDatabase::getFonts()[<%= font_index(index) %>]);
<% end %>
default:
return 0;
}
<% end %>
}