From 55a11710a6c0f7942f3947711f2050c34782c39d Mon Sep 17 00:00:00 2001 From: rubidium42 Date: Sat, 12 Jun 2021 09:10:17 +0200 Subject: Codechange: convert printf DEBUG statements to fmt Debug statements --- src/os/macosx/font_osx.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/os/macosx/font_osx.cpp') diff --git a/src/os/macosx/font_osx.cpp b/src/os/macosx/font_osx.cpp index 295fcf257..b931e7407 100644 --- a/src/os/macosx/font_osx.cpp +++ b/src/os/macosx/font_osx.cpp @@ -57,7 +57,7 @@ FT_Error GetFontByFaceName(const char *font_name, FT_Face *face) } if (os_err == noErr) { - DEBUG(freetype, 3, "Font path for %s: %s", font_name, file_path); + Debug(freetype, 3, "Font path for {}: {}", font_name, file_path); err = FT_New_Face(_library, (const char *)file_path, 0, face); } @@ -134,7 +134,7 @@ bool SetFallbackFont(FreeTypeSettings *settings, const char *language_isocode, i /* Save result. */ callback->SetFontNames(settings, name); if (!callback->FindMissingGlyphs()) { - DEBUG(freetype, 2, "CT-Font for %s: %s", language_isocode, name); + Debug(freetype, 2, "CT-Font for {}: {}", language_isocode, name); result = true; break; } @@ -221,7 +221,7 @@ void CoreTextFontCache::SetFontSize(int pixels) CFStringGetCString(font_name.get(), name, lengthof(name), kCFStringEncodingUTF8); this->font_name = name; - DEBUG(freetype, 2, "Loaded font '%s' with size %d", this->font_name.c_str(), pixels); + Debug(freetype, 2, "Loaded font '{}' with size {}", this->font_name, pixels); } GlyphID CoreTextFontCache::MapCharToGlyph(WChar key) -- cgit v1.2.3-70-g09d2