From c2f6d699a657bea5c626f2c8cb583a60b668ff65 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Wed, 8 Dec 2021 16:17:01 +0900 Subject: [PATCH] font-preview: If a font provides sample text, show it by default --- apps/font-preview.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/font-preview.c b/apps/font-preview.c index 9cb3e197..3cbed521 100644 --- a/apps/font-preview.c +++ b/apps/font-preview.c @@ -117,6 +117,9 @@ int main(int argc, char * argv[]) { if (argc > 2) { preview_string = argv[2]; + } else { + char * maybe = tt_get_name_string(tt_font, 19); + if (maybe) preview_string = maybe; } struct decor_bounds bounds;