Don't apply fonts that don't result in family name or have size 0.

Issue: 554
This commit is contained in:
Dave Davenport
2017-02-03 09:52:56 +01:00
parent 42a1eba275
commit 8f4a4d51c6
4 changed files with 39 additions and 6 deletions

View File

@@ -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