font-preview: If a font provides sample text, show it by default
This commit is contained in:
parent
7619fce256
commit
c2f6d699a6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user