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:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user