summaryrefslogtreecommitdiff
path: root/src/unittests/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-03-27 19:13:41 +0300
committerAndrei Karas <akaras@inbox.ru>2018-03-27 19:13:41 +0300
commit6da17088f26c4d9048124824a5bcd660beef338a (patch)
tree4a8bdbb1c9e9e89f94929471961fb41be9ea51e7 /src/unittests/gui
parent5afb8f2605c7b22d95081c489769cb94d9a748ff (diff)
downloadplus-6da17088f26c4d9048124824a5bcd660beef338a.tar.gz
plus-6da17088f26c4d9048124824a5bcd660beef338a.tar.bz2
plus-6da17088f26c4d9048124824a5bcd660beef338a.tar.xz
plus-6da17088f26c4d9048124824a5bcd660beef338a.zip
Dont use system font in browserbox unit tests.
Diffstat (limited to 'src/unittests/gui')
-rw-r--r--src/unittests/gui/widgets/browserbox.cc2
-rw-r--r--src/unittests/gui/widgets/staticbrowserbox.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/unittests/gui/widgets/browserbox.cc b/src/unittests/gui/widgets/browserbox.cc
index f29bdc8c9..2c0071313 100644
--- a/src/unittests/gui/widgets/browserbox.cc
+++ b/src/unittests/gui/widgets/browserbox.cc
@@ -80,7 +80,7 @@ TEST_CASE("BrowserBox tests", "browserbox")
gui->postInit(mainGraphics);
Widget::setGlobalFont(new Font(
- "/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Oblique.ttf",
+ "fonts/dejavusans.ttf",
18,
TTF_STYLE_NORMAL));
BrowserBox *const box = new BrowserBox(nullptr,
diff --git a/src/unittests/gui/widgets/staticbrowserbox.cc b/src/unittests/gui/widgets/staticbrowserbox.cc
index 784143fbc..1dad81d84 100644
--- a/src/unittests/gui/widgets/staticbrowserbox.cc
+++ b/src/unittests/gui/widgets/staticbrowserbox.cc
@@ -80,7 +80,7 @@ TEST_CASE("StaticBrowserBox tests", "browserbox")
gui->postInit(mainGraphics);
Widget::setGlobalFont(new Font(
- "/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Oblique.ttf",
+ "fonts/dejavusans.ttf",
18,
TTF_STYLE_NORMAL));
StaticBrowserBox *const box = new StaticBrowserBox(nullptr,