mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +00:00
FontEditor: Added quick and dirty support to add cyrrilic fonts.
This is a hack to support cyrillic text in serenity OS.
This commit is contained in:
parent
323b7021bc
commit
eb2b406173
1 changed files with 5 additions and 0 deletions
|
@ -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));
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue