small changes and many new sensors
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#include <QImage>
|
||||
#include <QFontDatabase>
|
||||
|
||||
#include <ESP8266lib/ext/lcd/Draw.h>
|
||||
#include "../../ext/lcd/Draw.h"
|
||||
#include <iostream>
|
||||
|
||||
#include <FontBuilder.h>
|
||||
@@ -26,13 +26,13 @@ MainWindow::~MainWindow() {
|
||||
|
||||
void MainWindow::paintEvent(QPaintEvent* e) {
|
||||
|
||||
QString fontPath="/apps/ESP8266lib/tools/PixelFontGen/fonts/";
|
||||
QString fontPath="/storage/vm/workspace/house/ESP8266lib/tools/PixelFontGen/fonts/";
|
||||
|
||||
//FontBuilder::Result res = fb.build("/apps/esp/test/04B_03__.TTF");
|
||||
//FontBuilder fb(10); fb.addChars("/apps/esp/PixelFont/PixelOperator.ttf", 16, 9, 32, 126);
|
||||
//FontBuilder fb(8); fb.addChars("/apps/esp/PixelFont/04B_03__.TTF", 8, 6, 32, 126); // OK
|
||||
//FontBuilder fb(8); fb.addChars("/apps/esp/PixelFont/Minecraft.ttf", 7.5, 6, 32, 126); // ugly
|
||||
//FontBuilder fb(10); fb.addChars("/apps/esp/PixelFont/EnterCommand.ttf", 15, 8, 32, 126);
|
||||
//FontBuilder fb(10); fb.addChars(fontPath+"/EnterCommand.ttf", 15, 8, 32, 126);
|
||||
//FontBuilder fb(10); fb.addChars("/apps/esp/PixelFont/PIXELADE.TTF", 13, 8, 32, 126);
|
||||
//FontBuilder fb(10); fb.addChars("/apps/esp/PixelFont/C&C Red Alert [LAN].ttf", 110, 8, 32, 126); // ugly
|
||||
//FontBuilder fb(11); fb.addChars("/apps/esp/PixelFont/LeviWindows.ttf", 21, 9, 32, 126);
|
||||
@@ -51,8 +51,24 @@ void MainWindow::paintEvent(QPaintEvent* e) {
|
||||
//FontBuilder fb(7); fb.addChars(fontPath+"/RNTG Larger.ttf", 7, 7, 32, 126, [](char c, QRect& r) {if(c=='1'){r.setX(0); r.setWidth(5);}});
|
||||
//FontBuilder fb(8); fb.addChars(fontPath+"/Bonni-Africa.ttf", 8, 7, 32, 126);
|
||||
|
||||
//FontBuilder fb(14); fb.addChars(fontPath+"/rainyhearts.ttf", 16, 11, 32, 126);
|
||||
//FontBuilder fb(16); fb.addChars(fontPath+"/Pixellari.ttf", 16, 7, 32, 126);
|
||||
//FontBuilder fb(13); fb.addChars(fontPath+"/PixelOperator.ttf", 16, 10, 32, 126);
|
||||
|
||||
|
||||
//FontBuilder fb(16); fb.setSpaceBetween(2); fb.addChars(fontPath+"/gameovercre1.ttf", 16, 12, 32, 126);
|
||||
FontBuilder fb(13); fb.setSpaceBetween(2); fb.addChars(fontPath+"/monaco.ttf", 16, 11, 32, 126);
|
||||
|
||||
|
||||
|
||||
|
||||
//FontBuilder fb(16); fb.addChars(fontPath+"/VCR_OSD_MONO_1.001.ttf", 21, 17, 32, 126);
|
||||
|
||||
|
||||
|
||||
//FontBuilder fb(8); fb.addCharsMonoFromImage("/apps/esp/PixelFont/res/fnt1.png", 3, 32, 126);
|
||||
|
||||
/*
|
||||
// test for icons
|
||||
FontBuilder fb(9);
|
||||
// for (int i = 0; i < 10; ++i) {
|
||||
@@ -62,10 +78,11 @@ void MainWindow::paintEvent(QPaintEvent* e) {
|
||||
fb.addIcon("/apps/esp32/BoatRemote/icon/boat.svg", 12, 9, 0);
|
||||
fb.addDummy();
|
||||
// }
|
||||
*/
|
||||
|
||||
const FontBuilder::Result& res = fb.get();
|
||||
//res.dump("f1");
|
||||
res.dump("fIcon");
|
||||
res.dump("f1");
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user