Browse Source

text-freetype2: Warn if no font file found

jp9000 11 years ago
parent
commit
25fa0c0fd7
1 changed files with 4 additions and 0 deletions
  1. 4 0
      plugins/text-freetype2/find-font-unix.c

+ 4 - 0
plugins/text-freetype2/find-font-unix.c

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