Open sebyldino opened 8 months ago
For example this font works:
#include "font/opensans12.h"
opensans12.h file:
#pragma once
#include "epd_driver.h"
const uint8_t OpenSans12Bitmaps[14575] = {...};
const GFXglyph OpenSans12Glyphs[] = {...};
const UnicodeInterval OpenSans12Intervals[] = {
{ 0x20, 0x7E, 0x0 },
{ 0xA0, 0xFF, 0x5F },
};
const GFXfont OpenSans12 = {
(uint8_t*)OpenSans12Bitmaps,
(GFXglyph*)OpenSans12Glyphs,
(UnicodeInterval*)OpenSans12Intervals,
2,
1,
34,
27,
-8,
};
Hi sebyldino, I had the same problem, I am using windows 10. I had to convert the font file to UTF-8 after I have generated it. E.g. with notepad++. Now it works.
When i convert a .ttf font or .ttc with fontconvert.py
I get this error when compiling with Arduino IDE 2.2.1:
#include "font/cambria.h"
Font file .h created:
Am I doing something wrong?
Thank you