Remove remnant of the SDL_ttf wrapper API

This commit is contained in:
Gunter Labes 2024-08-06 00:21:45 +02:00
parent b92f352c66
commit e1378188d3
No known key found for this signature in database
GPG key ID: C0C7B971CC910216
2 changed files with 0 additions and 24 deletions

View file

@ -39,27 +39,6 @@ static lg::log_domain log_font("font");
namespace font {
bool check_font_file(std::string name) {
if(game_config::path.empty() == false) {
if(!filesystem::file_exists(game_config::path + "/fonts/" + name)) {
if(!filesystem::file_exists("fonts/" + name)) {
if(!filesystem::file_exists(name)) {
WRN_FT << "Failed opening font file '" << name << "': No such file or directory";
return false;
}
}
}
} else {
if(!filesystem::file_exists("fonts/" + name)) {
if(!filesystem::file_exists(name)) {
WRN_FT << "Failed opening font file '" << name << "': No such file or directory";
return false;
}
}
}
return true;
}
namespace
{

View file

@ -53,7 +53,4 @@ bool load_font_config();
/** Returns the currently defined fonts. */
const t_string& get_font_families(family_class fclass = FONT_SANS_SERIF);
/** Test if a font file exists */
bool check_font_file(std::string name);
} // end namespace font