From 066546f4ecb0865296fa9380a70d94e3bb47d72f Mon Sep 17 00:00:00 2001 From: ferdymercury Date: Mon, 6 Oct 2025 12:32:47 +0200 Subject: [PATCH] [graf] more informative error message See https://root-forum.cern.ch/t/compilation-error-due-to-font-not-found-in-path/64260 --- graf2d/graf/src/TTF.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graf2d/graf/src/TTF.cxx b/graf2d/graf/src/TTF.cxx index c30437f423a15..758bb98c192f0 100644 --- a/graf2d/graf/src/TTF.cxx +++ b/graf2d/graf/src/TTF.cxx @@ -425,7 +425,7 @@ Int_t TTF::SetTextFont(const char *fontname, Int_t italic) char *ttfont = gSystem->Which(ttpath, fontname, kReadPermission); if (!ttfont) { - Error("TTF::SetTextFont", "font file %s not found in path", fontname); + Error("TTF::SetTextFont", "font file %s not found in path %s", fontname, ttpath); if (fgFontCount) { Warning("TTF::SetTextFont", "using default font %s", fgFontName[0]); fgCurFontIdx = 0; // use font 0 (default font, set in ctor)