Commit ae9bb304 authored by Tomi Korpipää's avatar Tomi Korpipää

Fix font loading in kria

parent 6b916b79
......@@ -55,7 +55,7 @@
int main(int argc, char *argv[])
{
// qputenv("Q3DS_NO_DRAGONWINGS", "1");
qputenv("Q3DS_DRAGON", "1");
// qputenv("Q3DS_DRAGON", "1");
qputenv("QT_QPA_EGLFS_HIDECURSOR", "1");
// qputenv("QT_QPA_EGLFS_DISABLE_INPUT", "1");
qputenv("QT_QPA_EGLFS_WIDTH", "1920");
......@@ -71,7 +71,7 @@ int main(int argc, char *argv[])
// qputenv("QT_LOGGING_RULES", "qt.qpa.*=true");
// Disable all extra logging
qputenv("QT_LOGGING_RULES", "*=false");
// qputenv("QT_LOGGING_RULES", "*=false");
// QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
......@@ -79,7 +79,7 @@ int main(int argc, char *argv[])
QSurfaceFormat::setDefaultFormat(Q3DS::surfaceFormat());
QFontDatabase::addApplicationFont("qrc:/qml/fonts/TitilliumWeb-SemiBold.ttf");
QFontDatabase::addApplicationFont("qrc:/presentation/fonts/TitilliumWeb-Regular.ttf");
QFont defaultFont;
defaultFont.setFamily("Titillium Web");
QGuiApplication::setFont(defaultFont);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment