Change qr library to properly support utf8 characters
This commit is contained in:
+5
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user