From 0cbcd35f52db121ee458797f2e22c443f15fc637 Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Sat, 27 May 2023 09:33:45 +0200 Subject: [PATCH] better error message --- src/gpufont/font.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gpufont/font.hpp b/src/gpufont/font.hpp index 86e6fb3..49f0348 100644 --- a/src/gpufont/font.hpp +++ b/src/gpufont/font.hpp @@ -1375,8 +1375,10 @@ static std::shared_ptr loadFont(FT_Library & library, std::string error; FT_Face face = Font::loadFace(library, filename, error); if(error != ""){ - std::cerr << "[font] failed to load " << filename << ": " << error << std::endl; + std::cerr << "ofxGPUFont::font.hpp[" << __LINE__ << "] FT failed to load " << filename << ": " << error << std::endl; return std::shared_ptr {}; + }else{ + std::cout << "ofxGPUFont::font.hpp[" << __LINE__ << "] FT loaded " << filename << ": " << error << std::endl; } return std::make_shared (face, gpuTextureOffset, worldSize, hinting);