Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[colorful-home] Add OpenSans as colorful-home font.
  • Loading branch information
locusf committed Sep 28, 2013
1 parent 6e33c41 commit befc88b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions rpm/lipstick-colorful-home-qt5.spec
Expand Up @@ -23,6 +23,7 @@ Requires: nemo-qml-plugin-configuration-qt5
Requires: nemo-qml-plugin-time-qt5
Requires: qt-components-qt5 >= 2.0.2
Requires: qt5-qtdeclarative-import-window2
Requires: google-opensans-fonts
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: pkgconfig(lipstick-qt5) >= 0.12.0
Expand Down
4 changes: 4 additions & 0 deletions src/main.cpp
Expand Up @@ -24,6 +24,8 @@
#include <homeapplication.h>
#include <QDebug>
#include <QStringList>
#include <QFont>
#include <QFontDatabase>

#include <systemd/sd-daemon.h>
#include <homewindow.h>
Expand All @@ -33,6 +35,8 @@ int main(int argc, char **argv)
HomeApplication app(argc, argv, QString());

app.setCompositorPath("qrc:/qml/compositor.qml");
QFontDatabase::addApplicationFont("/usr/share/fonts/google-opensans/OpenSans-Regular.ttf");
QGuiApplication::setFont(QFont("OpenSans"));

setenv("EGL_PLATFORM", "wayland", 1);
setenv("QT_QPA_PLATFORM", "wayland", 1);
Expand Down

0 comments on commit befc88b

Please sign in to comment.