mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-26 00:51:38 +02:00
Merge #17257: gui: disable font antialiasing for QR image address
e156b9d8b9
gui: disable font antialiasing for QR image address (fanquake) Pull request description: The address text inside the QR code is currently fairly blurry / unreadable. Explicitly disabling font antialiasing improves that somewhat. master (693e40090a
):  PR (e156b9d8b9
):  ACKs for top commit: laanwj: ACKe156b9d8b9
Tree-SHA512: 32aeb2ffe8164a1006f80e76c6e413fcb88e32ced42d2b2af69cca908bd32673f3e379184be917f1870864b940db943e7f46a7ecb0779343d5d129b381660c38
This commit is contained in:
@@ -71,6 +71,7 @@ bool QRImageWidget::setQR(const QString& data, const QString& text)
|
|||||||
|
|
||||||
if (!text.isEmpty()) {
|
if (!text.isEmpty()) {
|
||||||
QFont font = GUIUtil::fixedPitchFont();
|
QFont font = GUIUtil::fixedPitchFont();
|
||||||
|
font.setStyleStrategy(QFont::NoAntialias);
|
||||||
QRect paddedRect = qrAddrImage.rect();
|
QRect paddedRect = qrAddrImage.rect();
|
||||||
|
|
||||||
// calculate ideal font size
|
// calculate ideal font size
|
||||||
|
Reference in New Issue
Block a user