summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelectrikmilk <brandonjordan124@gmail.com>2022-03-05 15:05:48 -0500
committerAndreas Kling <kling@serenityos.org>2022-03-05 21:24:25 +0100
commit056ca6277837ab2c3fc9380a2d8ccd2793f23491 (patch)
treec0df07d0b43f97679840635fb21a3221740b2f0c
parent59fa8323cf088340c54a05fe5d4afa5ce59f0237 (diff)
downloadserenity-056ca6277837ab2c3fc9380a2d8ccd2793f23491.zip
FontEditor: Add code previews for fixed-width fonts
Add pseudo code to font preview for fixed-width programming fonts.
-rw-r--r--Userland/Applications/FontEditor/FontEditor.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Applications/FontEditor/FontEditor.cpp b/Userland/Applications/FontEditor/FontEditor.cpp
index aa1bb2db5c..c41fd41bdc 100644
--- a/Userland/Applications/FontEditor/FontEditor.cpp
+++ b/Userland/Applications/FontEditor/FontEditor.cpp
@@ -51,7 +51,9 @@ static constexpr Array pangrams = {
"waxy and quivering jocks fumble the pizza",
"~#:[@_1%]*{$2.3}/4^(5'6\")-&|7+8!=<9,0\\>?;",
"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)