Support for TTF font
This commit is contained in:
parent
bc979883c2
commit
6c993f96fb
2 changed files with 16 additions and 4 deletions
|
@ -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 %}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue