summaryrefslogtreecommitdiff
path: root/Userland/Applications
diff options
context:
space:
mode:
authorDmitrii Trifonov <comanche.ak47@yandex.ru>2021-04-08 14:42:10 +0300
committerAndreas Kling <kling@serenityos.org>2021-04-09 08:33:12 +0200
commiteb2b406173a975900d3b658ab0199ad4cc0bb422 (patch)
treed5f30d0150f6e785ceb6467da097697703c978ff /Userland/Applications
parent323b7021bca849b51c031680e99a588994b80bd0 (diff)
downloadserenity-eb2b406173a975900d3b658ab0199ad4cc0bb422.zip
FontEditor: Added quick and dirty support to add cyrrilic fonts.
This is a hack to support cyrillic text in serenity OS.
Diffstat (limited to 'Userland/Applications')
-rw-r--r--Userland/Applications/FontEditor/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Applications/FontEditor/main.cpp b/Userland/Applications/FontEditor/main.cpp
index c18a0a14d9..eeddb83d5f 100644
--- a/Userland/Applications/FontEditor/main.cpp
+++ b/Userland/Applications/FontEditor/main.cpp
@@ -107,6 +107,11 @@ int main(int argc, char** argv)
if (font->type() == Gfx::FontTypes::Default)
font->set_type(Gfx::FontTypes::LatinExtendedA);
+ // Convert 384 char font to 1280 char font.
+ // Dirty hack. Should be refactored.
+ if (font->type() == Gfx::FontTypes::LatinExtendedA)
+ font->set_type(Gfx::FontTypes::Cyrillic);
+
window->set_title(String::formatted("{} - Font Editor", path));
static_cast<FontEditorWidget*>(window->main_widget())->initialize(path, move(font));
};