Support for TTF font

This commit is contained in:
Denis Colesnicov 2020-06-18 11:48:20 +02:00
parent bc979883c2
commit 6c993f96fb
2 changed files with 16 additions and 4 deletions

View file

@ -8,7 +8,8 @@ _EXTRAS_FONTS_FONT_{{ font.name|upper }}_{{ font.size[0] }}X{{ font.size[1] }}_{
_fonts_{{ font.name|lower }}_{{ font_size }}_{{ font.charset|lower }}
{%- endset -%}
/**
* This file contains generated binary font data.
* This file contains generated binary font data. *
* Generated from file: ({{ font.path }})
*
* Font: {{ font.name }}
* Size: {{ font_size }}
@ -22,6 +23,9 @@ _fonts_{{ font.name|lower }}_{{ font_size }}_{{ font.charset|lower }}
#ifndef {{ header_id }}
#define {{ header_id }}
#include <stdint.h>
//#include <fonts/fonts.h> // Uncomment this if you get error 'unknown type 'font_info_t'"..
static const uint8_t {{ font_prefix }}_bitmaps[] = {
{%- for char in chars %}