mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
Remove references to no longer used font
This commit is contained in:
parent
56799c79f4
commit
57a259c526
@ -27,25 +27,6 @@ using namespace Process;
|
|||||||
Launcher::MainDialog::MainDialog(QWidget *parent)
|
Launcher::MainDialog::MainDialog(QWidget *parent)
|
||||||
: mGameSettings(mCfgMgr), QMainWindow (parent)
|
: mGameSettings(mCfgMgr), QMainWindow (parent)
|
||||||
{
|
{
|
||||||
// Install the stylesheet font
|
|
||||||
QFile file;
|
|
||||||
QFontDatabase fontDatabase;
|
|
||||||
|
|
||||||
const QStringList fonts = fontDatabase.families();
|
|
||||||
|
|
||||||
// Check if the font is installed
|
|
||||||
if (!fonts.contains("EB Garamond")) {
|
|
||||||
|
|
||||||
QString font = QString::fromUtf8(mCfgMgr.getGlobalDataPath().string().c_str()) + QString("resources/mygui/EBGaramond-Regular.ttf");
|
|
||||||
file.setFileName(font);
|
|
||||||
|
|
||||||
if (!file.exists()) {
|
|
||||||
font = QString::fromUtf8(mCfgMgr.getLocalPath().string().c_str()) + QString("resources/mygui/EBGaramond-Regular.ttf");
|
|
||||||
}
|
|
||||||
|
|
||||||
fontDatabase.addApplicationFont(font);
|
|
||||||
}
|
|
||||||
|
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
|
|
||||||
mGameInvoker = new ProcessInvoker();
|
mGameInvoker = new ProcessInvoker();
|
||||||
|
@ -44,7 +44,6 @@
|
|||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
|
|
||||||
font-size: 12pt;
|
font-size: 12pt;
|
||||||
font-family: "EB Garamond", "EB Garamond 08";
|
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -95,7 +94,6 @@
|
|||||||
<property name="styleSheet">
|
<property name="styleSheet">
|
||||||
<string notr="true">#profileLabel {
|
<string notr="true">#profileLabel {
|
||||||
font-size: 18pt;
|
font-size: 18pt;
|
||||||
font-family: "EB Garamond", "EB Garamond 08";
|
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
</string>
|
</string>
|
||||||
@ -133,7 +131,6 @@
|
|||||||
stop:1 rgba(0, 0, 0, 100));
|
stop:1 rgba(0, 0, 0, 100));
|
||||||
|
|
||||||
font-size: 26pt;
|
font-size: 26pt;
|
||||||
font-family: "EB Garamond", "EB Garamond 08";
|
|
||||||
color: black;
|
color: black;
|
||||||
|
|
||||||
border-right: 1px solid rgba(0, 0, 0, 155);
|
border-right: 1px solid rgba(0, 0, 0, 155);
|
||||||
|
Loading…
Reference in New Issue
Block a user