text-freetype2: Warn if no font file found

This commit is contained in:
jp9000
2014-08-26 10:25:49 -07:00
parent ab4efe4dd1
commit 25fa0c0fd7

View File

@@ -16,6 +16,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <fontconfig/fontconfig.h>
#include <util/base.h>
#include <util/dstr.h>
#include "find-font.h"
@@ -66,6 +67,9 @@ const char *get_font_path(const char *family, uint16_t size, const char *style,
FcPatternDestroy(match);
success = true;
} else {
blog(LOG_WARNING, "no matching font for '%s' found",
family);
}
FcPatternDestroy(pattern);