FontEditor: Add code previews for fixed-width fonts

Add pseudo code to font preview for fixed-width programming fonts.
This commit is contained in:
electrikmilk 2022-03-05 15:05:48 -05:00 committed by Andreas Kling
parent 59fa8323cf
commit 056ca62778
Notes: sideshowbarker 2024-07-18 05:37:06 +09:00

View File

@ -51,7 +51,9 @@ static constexpr Array pangrams = {
"waxy and quivering jocks fumble the pizza", "waxy and quivering jocks fumble the pizza",
"~#:[@_1%]*{$2.3}/4^(5'6\")-&|7+8!=<9,0\\>?;", "~#:[@_1%]*{$2.3}/4^(5'6\")-&|7+8!=<9,0\\>?;",
"byxfjärmat föl gick på duvshowen", "byxfjärmat föl gick på duvshowen",
"         " "         ",
"float Fox.quick(h){ is_brown && it_jumps_over(doges.lazy) }",
"<fox color=\"brown\" speed=\"quick\" jumps=\"over\">lazy dog</fox>"
}; };
static RefPtr<GUI::Window> create_font_preview_window(FontEditorWidget& editor) static RefPtr<GUI::Window> create_font_preview_window(FontEditorWidget& editor)