Remove remnant of the SDL_ttf wrapper API
This commit is contained in:
parent
b92f352c66
commit
e1378188d3
2 changed files with 0 additions and 24 deletions
|
@ -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
|
||||
{
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue