mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +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
Notes:
sideshowbarker
2024-07-18 20:38:18 +09:00
Author: https://github.com/DmitriiTrifonov Commit: https://github.com/SerenityOS/serenity/commit/eb2b406173a Pull-request: https://github.com/SerenityOS/serenity/pull/6194 Issue: https://github.com/SerenityOS/serenity/issues/6192
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…
Reference in a new issue