Change qr library to properly support utf8 characters

This commit is contained in:
jpirnay
2026-04-04 16:42:28 +02:00
parent 9baded03ed
commit 3c960a4c3e
7 changed files with 1493 additions and 40 deletions
+5 -1
View File
@@ -8,7 +8,11 @@
namespace QrUtils {
// Maximum QR capacity in bytes (Version 40, ECC_LOW, byte mode).
static constexpr size_t MAX_QR_CAPACITY = 2953;
// Renders a QR code with the given text payload within the specified bounding box.
void drawQrCode(const GfxRenderer& renderer, const Rect& bounds, const std::string& textPayload);
// Returns true if the payload was truncated to fit the QR capacity.
bool drawQrCode(const GfxRenderer& renderer, const Rect& bounds, const std::string& textPayload);
} // namespace QrUtils