Merge pull request #2676 from chromatic/reduce-font-warnings

[Qt] Reduce font warnings
This commit is contained in:
Old Dip Tracker 2024-02-12 01:50:09 +01:00 committed by GitHub
commit 2e711213ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 12 additions and 0 deletions

View File

@ -102,5 +102,9 @@
<file alias="ComicNeue-Light-Oblique">res/fonts/ComicNeue-Light-Oblique.ttf</file>
<file alias="ComicNeue-Regular">res/fonts/ComicNeue-Regular.ttf</file>
<file alias="ComicNeue-Regular-Oblique">res/fonts/ComicNeue-Regular-Oblique.ttf</file>
<file alias="NotoSans-Bold">res/fonts/NotoSans-Bold.ttf</file>
<file alias="NotoSans-Light">res/fonts/NotoSans-Light.ttf</file>
<file alias="NotoSans-Medium">res/fonts/NotoSans-Medium.ttf</file>
<file alias="NotoSans-Regular">res/fonts/NotoSans-Regular.ttf</file>
</qresource>
</RCC>

View File

@ -181,6 +181,12 @@ BitcoinGUI::BitcoinGUI(const PlatformStyle *_platformStyle, const NetworkStyle *
QFontDatabase::addApplicationFont(":fonts/ComicNeue-Regular-Oblique");
QFont::insertSubstitution("Comic Sans MS", "Comic Neue");
// Dogecoin: load this bundled font for Settings -> Options in case it's not available on the system
QFontDatabase::addApplicationFont(":fonts/NotoSans-Bold");
QFontDatabase::addApplicationFont(":fonts/NotoSans-Light");
QFontDatabase::addApplicationFont(":fonts/NotoSans-Medium");
QFontDatabase::addApplicationFont(":fonts/NotoSans-Regular");
// Dogecoin: Specify Comic Sans as new font.
QFont newFont("Comic Sans MS", 10);

View File

@ -86,6 +86,8 @@ OptionsDialog::OptionsDialog(QWidget *parent, bool enableWallet) :
/* Display elements init */
QDir translations(":translations");
QFont notoFont("Noto Sans Roboto", 10);
ui->lang->setFont(notoFont);
ui->bitcoinAtStartup->setToolTip(ui->bitcoinAtStartup->toolTip().arg(tr(PACKAGE_NAME)));
ui->bitcoinAtStartup->setText(ui->bitcoinAtStartup->text().arg(tr(PACKAGE_NAME)));

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.