/* DO NOT EDIT THIS FILE */ /* This file is autogenerated by the text-database code generator */ #include #include #include 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(TypedTextDatabase::getFonts()[<%= font_index(index) %>]); <% end %> default: return 0; } <% end %> }