Skip to content

Commit

Permalink
Cleanup|libgui: Print debug messages to the log
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Sep 1, 2019
1 parent adee7d6 commit e3dc073
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doomsday/libs/gui/net.dengine.stdlib.gui.pack/fonts.dei
Expand Up @@ -20,7 +20,7 @@ script {
App.loadFont(fontDir / ("Source Sans Pro/SourceSansPro-%s.ttf" % style))
end
# Monospace font, too.
for style in ['Regular', 'Bold']
for style in ['Regular', 'Bold', 'Light']
App.loadFont(fontDir / ("Source Code Pro/SourceCodePro-%s.ttf" % style))
end
end
Expand Down
6 changes: 3 additions & 3 deletions doomsday/libs/gui/src/text/stbttnativefont.cpp
Expand Up @@ -106,17 +106,17 @@ struct FontCache // thread-local
auto data = fontDb.sourceData.find(name);
if (data == fontDb.sourceData.end())
{
debug("[StbTtNativeFont] no source data for '%s'", name.c_str());
LOG_RES_ERROR("[StbTtNativeFont] no source data for '%s'") << name;
return nullptr;
}
stbtt_fontinfo *font = &fonts[key];
if (!stbtt_InitFont(font, data->second.data(), 0))
{
fonts.erase(key);
debug("[StbTtNativeFont] error initializing '%s'", name.c_str());
LOG_RES_ERROR("[StbTtNativeFont] error initializing '%s'") << name;
return nullptr;
}
debug("[StbTtNativeFont] initialized %p '%s'", font, name.c_str());
LOG_RES_VERBOSE("[StbTtNativeFont] initialized %p '%s'") << font << name;
return font;
}

Expand Down

0 comments on commit e3dc073

Please sign in to comment.