A somewhat working state, but still struggeling with pangocairo

This commit is contained in:
2023-11-12 12:26:19 +01:00
parent 5b3148cb65
commit 3d5b1ae7b6
3 changed files with 72 additions and 4 deletions

View File

@@ -39,6 +39,7 @@
#include "CLI/Option.hpp"
#include "P700Printer.hpp"
#include "graphics/Bitmap.hpp"
#include "graphics/Image.hpp"
#include "libusbwrap/UsbDeviceFactory.hpp"
namespace ptprnt {
@@ -98,6 +99,10 @@ int PtouchPrint::run() {
for (auto& cmd : mCommands) {
spdlog::debug("Command: {}", cmd.second);
if (cmd.first == CliCmdType::Text) {
auto label{graphics::Image()};
label.createLabel(cmd.second);
}
}
return 0;