1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:57:35 +00:00

FontEditor: Use LibUnicode to convert character case

Fixes characters beyond the Basic Latin code block not showing
their upper-case form in the preview window.
This commit is contained in:
thankyouverycool 2021-11-29 09:00:15 -05:00 committed by Andreas Kling
parent edf86af4f4
commit 56a8a2b493

View file

@ -88,7 +88,7 @@ static RefPtr<GUI::Window> create_font_preview_window(FontEditorWidget& editor)
preview_textbox.on_change = [&] {
auto preview = String::formatted("{}\n{}",
preview_textbox.text(),
preview_textbox.text().to_uppercase());
Unicode::to_unicode_uppercase_full(preview_textbox.text()));
preview_label.set_text(preview);
};