From 2335953c5d27a525179b23001cd8188e40d34539 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 9 Aug 2020 18:02:04 -0400 Subject: [PATCH] gtk-demo: Cosmetic fixes for the fontrendering demo Make this look a bit less thrown together. --- demos/gtk-demo/fontrendering.c | 2 +- demos/gtk-demo/fontrendering.ui | 339 ++++++++++++++++---------------- 2 files changed, 172 insertions(+), 169 deletions(-) diff --git a/demos/gtk-demo/fontrendering.c b/demos/gtk-demo/fontrendering.c index d6c3525604..44a628e786 100644 --- a/demos/gtk-demo/fontrendering.c +++ b/demos/gtk-demo/fontrendering.c @@ -19,7 +19,7 @@ static GtkWidget *show_extents = NULL; static PangoContext *context; -static int scale = 10; +static int scale = 9; static void update_image (void) diff --git a/demos/gtk-demo/fontrendering.ui b/demos/gtk-demo/fontrendering.ui index aa9cec3438..e9fcea53d5 100644 --- a/demos/gtk-demo/fontrendering.ui +++ b/demos/gtk-demo/fontrendering.ui @@ -6,164 +6,11 @@ 4 - 600 - 300 - Font rendering - - - 10 - 10 - 10 - - - 10 - Text - 1 - - - - - - Fonts render - - 1 - - - - - - 10 - Font - 1 - - - 0 - 1 - - - - - - - 1 - 1 - - - - - - Hinting - 1 - - - 2 - - - - - - 0 - center - - None - Slight - Medium - Full - - - 3 - - - - - - - - Hint Metrics - - - - - 3 - 1 - - - - - - 1 - - - Show Extents - - - - - 4 - 0 - - - - - - 1 - - - Show Grid - - - - - 4 - 1 - - - - - - list-add-symbolic - - - 5 - 0 - - - - - - list-remove-symbolic - - - 5 - 1 - - - - - - 1 - - 6 - - - - + 1080 + 430 + + + center center @@ -183,11 +30,172 @@ text_radio - - 0 - 3 - 7 - + + + + + + + vertical + + + center + 10 + 10 + 10 + 10 + + + 10 + Text + 1 + + + 1 + + + + + + Fonts render + + 2 + + + + + + 10 + Font + 1 + + + 1 + 1 + + + + + + + 2 + 1 + + + + + + Hinting + 1 + + + 3 + + + + + + 0 + center + + None + Slight + Medium + Full + + + 4 + + + + + + + + Hint Metrics + + + + + 4 + 1 + + + + + + 1 + + + Show Extents + + + + + 5 + 0 + + + + + + 1 + + + Show Grid + + + + + 5 + 1 + + + + + + list-add-symbolic + + + 6 + 0 + + + + + + list-remove-symbolic + + + 6 + 1 + + + + + + 1 + + 7 + + + @@ -203,11 +211,6 @@ 0 - - 0 - 4 - 7 -