Skip to content

Commit

Permalink
Remove the bundled open sans font
Browse files Browse the repository at this point in the history
  • Loading branch information
mujx committed Oct 7, 2018
1 parent 4b80722 commit 2295d68
Show file tree
Hide file tree
Showing 15 changed files with 6 additions and 220 deletions.
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,5 @@ Here is a screen shot to get a feel for the UI, but things will probably change.

![nheko](https://dl.dropboxusercontent.com/s/3zjcezdtk8kqe4i/nheko-v0.4.0.png)

### Third party

- [Font Awesome](http://fontawesome.io/)
- [Open Sans](https://fonts.google.com/specimen/Open+Sans)

[Matrix]:https://matrix.org
[Riot]:https://riot.im
202 changes: 0 additions & 202 deletions resources/fonts/OpenSans/LICENSE.txt

This file was deleted.

Binary file removed resources/fonts/OpenSans/OpenSans-Bold.ttf
Binary file not shown.
Binary file removed resources/fonts/OpenSans/OpenSans-BoldItalic.ttf
Binary file not shown.
Binary file removed resources/fonts/OpenSans/OpenSans-ExtraBold.ttf
Binary file not shown.
Binary file not shown.
Binary file removed resources/fonts/OpenSans/OpenSans-Italic.ttf
Binary file not shown.
Binary file removed resources/fonts/OpenSans/OpenSans-Light.ttf
Binary file not shown.
Binary file removed resources/fonts/OpenSans/OpenSans-LightItalic.ttf
Binary file not shown.
Binary file removed resources/fonts/OpenSans/OpenSans-Regular.ttf
Binary file not shown.
Binary file removed resources/fonts/OpenSans/OpenSans-Semibold.ttf
Binary file not shown.
Binary file not shown.
6 changes: 0 additions & 6 deletions resources/res.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,6 @@
<file>nheko-32.png</file>
<file>nheko-16.png</file>
</qresource>
<qresource prefix="/fonts">
<file>fonts/OpenSans/OpenSans-Regular.ttf</file>
<file>fonts/OpenSans/OpenSans-Italic.ttf</file>
<file>fonts/OpenSans/OpenSans-Bold.ttf</file>
<file>fonts/OpenSans/OpenSans-Semibold.ttf</file>
</qresource>
<qresource prefix="/styles">
<file>styles/system.qss</file>
<file>styles/nheko.qss</file>
Expand Down
6 changes: 5 additions & 1 deletion src/TrayIcon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,13 @@ MsgCountComposedIcon::paint(QPainter *painter,
brush.setStyle(Qt::SolidPattern);
brush.setColor(backgroundColor);

QFont f;
f.setPointSizeF(8);
f.setWeight(QFont::Thin);

painter->setBrush(brush);
painter->setPen(Qt::NoPen);
painter->setFont(QFont("Open Sans", 8, QFont::Black));
painter->setFont(f);

QRectF bubble(rect.width() - BubbleDiameter,
rect.height() - BubbleDiameter,
Expand Down
7 changes: 1 addition & 6 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,6 @@ main(int argc, char *argv[])
parser.addVersionOption();
parser.process(app);

QFontDatabase::addApplicationFont(":/fonts/fonts/OpenSans/OpenSans-Regular.ttf");
QFontDatabase::addApplicationFont(":/fonts/fonts/OpenSans/OpenSans-Italic.ttf");
QFontDatabase::addApplicationFont(":/fonts/fonts/OpenSans/OpenSans-Bold.ttf");
QFontDatabase::addApplicationFont(":/fonts/fonts/OpenSans/OpenSans-Semibold.ttf");

app.setWindowIcon(QIcon(":/logos/nheko.png"));

http::init();
Expand All @@ -151,7 +146,7 @@ main(int argc, char *argv[])

QSettings settings;

QFont font("Open Sans");
QFont font;
font.setPointSizeF(settings.value("user/font_size", font.pointSizeF()).toDouble());

app.setFont(font);
Expand Down

0 comments on commit 2295d68

Please sign in to comment.