mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-30 23:35:41 +00:00
Remove remnant of the SDL_ttf wrapper API
This commit is contained in:
parent
b92f352c66
commit
e1378188d3
@ -39,27 +39,6 @@ static lg::log_domain log_font("font");
|
|||||||
namespace 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
|
namespace
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -53,7 +53,4 @@ bool load_font_config();
|
|||||||
/** Returns the currently defined fonts. */
|
/** Returns the currently defined fonts. */
|
||||||
const t_string& get_font_families(family_class fclass = FONT_SANS_SERIF);
|
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
|
} // end namespace font
|
||||||
|
Loading…
x
Reference in New Issue
Block a user