diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-02-03 09:52:56 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-02-03 09:54:18 +0100 |
commit | 8f4a4d51c65a98e3e3c7a307d575fc8eb8bf50d5 (patch) | |
tree | c025305d32ccc59fb47e9ffe577a37f9fb3a130d /include | |
parent | 42a1eba275406b1325d28d3905f4bf36d6afe822 (diff) |
Don't apply fonts that don't result in family name or have size 0.
Issue: 554
Diffstat (limited to 'include')
-rw-r--r-- | include/helper.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/helper.h b/include/helper.h index a74a162e..85ff158a 100644 --- a/include/helper.h +++ b/include/helper.h @@ -234,4 +234,12 @@ int rofi_scorer_fuzzy_evaluate ( const char *pattern, glong plen, const char *st * characters (not bytes) of `b`. */ int utf8_strncmp ( const char *a, const char* b, size_t n ); + +/** + * @param pfd Pango font description to validate. + * @param font The name of the font to check. + * + * @returns true if font is valid. + */ +gboolean helper_validate_font ( PangoFontDescription *pfd, const char *font ); #endif // ROFI_HELPER_H |