Qt does not guarantee that the actual applied font matches to the requested one. It was noted (https://github.com/bitcoin/bitcoin/pull/16432#issuecomment-514486077):
the monospace font looks a bit weird no macOS
… because it is not monospaced. Also some discrepancies I’ve noted on Windows while testing Qt 5.15 (#19716).
Of course, we could check the actual font with QFontInfo
, and try to choose another font.
But this PR suggests to just embed a monospaced font, and get the GUI look (partially) independent from a platform.
Roboto Mono was chosen after discussion with Bitcoin Design community, and due to its Apache License, Version 2.0.
Changes are scoped to the Overview page only.
Screenshots on macOS 10.15.6 (images are simulated by code patching):
-
master (ca30d34cf94b7797272ef1920ca4b48716e7f999)
-
this PR (3fdd5b6bd17a679d6e3876682266092159c52d59)
More screenshots added after #79 (comment):
- Linux Mint 20.1 + Cinnamon DE
- Windows 10 (with depends)
- macOS Big Sur (with depends)