Added tft method to draw a bmp from filesystem. Added another font to emulator.

This commit is contained in:
t-moe
2015-05-15 20:17:36 +02:00
parent 9a16865b00
commit b08a897e61
3 changed files with 72 additions and 1 deletions

View File

@@ -44,13 +44,15 @@ void ll_tft_draw_circle(uint16_t x, uint16_t y, uint16_t r, uint16_t color) {
}
uint8_t ll_tft_num_fonts() {
return 1;
return 2;
}
QFont get_font(uint8_t fontnum) {
switch(fontnum) {
case 0:
return QFont("Monospace",8);
case 1:
return QFont("DejaVu Sans Mono",14);
default:
return QFont();
}