2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Use extern with custom font variables (#7)

This commit is contained in:
ilya-fedin
2020-03-06 23:14:08 +00:00
committed by GitHub
parent 6b02149040
commit b78840238d
2 changed files with 7 additions and 7 deletions

View File

@@ -164,22 +164,22 @@ Application::~Application() {
void Application::run() {
KotatoSettings::Start();
if (!cMainFont().isEmpty()) {
style::internal::SetMainFont(cMainFont());
style::internal::CustomMainFont = cMainFont();
}
if (!cSemiboldFont().isEmpty()) {
style::internal::SetSemiboldFont(cSemiboldFont());
style::internal::CustomSemiboldFont = cSemiboldFont();
}
if (cSemiboldFontIsBold()) {
style::internal::SetSemiboldIsBold(cSemiboldFontIsBold());
style::internal::CustomSemiboldIsBold = cSemiboldFontIsBold();
}
if (!cMonospaceFont().isEmpty()) {
style::internal::SetMonospaceFont(cMonospaceFont());
style::internal::CustomMonospaceFont = cMonospaceFont();
}
if (cUseSystemFont()) {
style::internal::SetUseSystemFont(cUseSystemFont());
style::internal::UseSystemFont = cUseSystemFont();
}
if (cUseOriginalMetrics()) {
style::internal::SetUseOriginalMetrics(cUseOriginalMetrics());
style::internal::UseOriginalMetrics = cUseOriginalMetrics();
}
style::internal::StartFonts();