Skip to content

Commit

Permalink
Install bold variant of inter font
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrossignol committed Oct 5, 2020
1 parent f76cc6e commit 84c26d0
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Makefile.qt.include
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,10 @@ RES_IMAGES = \
qt/res/images/ic_solo_active.svg \
qt/res/images/ic_solo_inactive.svg \
qt/res/images/splash3.png

RES_FONTS = \
qt/res/fonts/Inconsolata-Regular.ttf \
qt/res/fonts/Inter-Bold.ttf \
qt/res/fonts/Inter-Regular.ttf

RES_STYLESHEETS = \
Expand Down
1 change: 1 addition & 0 deletions src/qt/bitcoin.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
</qresource>
<qresource prefix="/fonts">
<file alias="inconsolata-regular">res/fonts/Inconsolata-Regular.ttf</file>
<file alias="inter-bold">res/fonts/Inter-Bold.ttf</file>
<file alias="inter-regular">res/fonts/Inter-Regular.ttf</file>
</qresource>
<qresource prefix="/movies"/>
Expand Down
1 change: 1 addition & 0 deletions src/qt/bitcoingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ BitcoinGUI::BitcoinGUI(QWidget *parent):

setGeometry(QStyle::alignedRect(Qt::LeftToRight,Qt::AlignCenter,QDesktopWidget().availableGeometry(this).size() * 0.6,QDesktopWidget().availableGeometry(this)));

QFontDatabase::addApplicationFont(":/fonts/inter-bold");
QFontDatabase::addApplicationFont(":/fonts/inter-regular");
QFontDatabase::addApplicationFont(":/fonts/inconsolata-regular");
setWindowTitle(tr("Gridcoin") + " " + tr("Wallet"));
Expand Down
Binary file added src/qt/res/fonts/Inter-Bold.ttf
Binary file not shown.
Binary file modified src/qt/res/fonts/Inter-Regular.ttf
Binary file not shown.

1 comment on commit 84c26d0

@opsinphark
Copy link
Contributor

@opsinphark opsinphark commented on 84c26d0 Oct 5, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In hindsight it might have been best to use the packaged TTF file that includes all glyphs, variation axes and named styles.
Apologies, I should have thought about this before adding.

Inter-VariableFont_slnt,wght.ttf
Glyph Count:
2537
Variation Axes:
Weight 100 — 900, default 400
Slant -10 — 0, default 0
Named Styles:
Thin, Thin Italic, ExtraLight, ExtraLight Italic, Light, Light Italic, Regular, Italic, Medium, Medium Italic, SemiBold, SemiBold Italic, Bold, Bold Italic, ExtraBold, ExtraBold Italic, Black, Black Italic

Please sign in to comment.