Browse Source

text-freetype2: Warn if no font file found

jp9000 11 năm trước cách đây
mục cha
commit
25fa0c0fd7
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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 <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);