The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Macros | Functions | Variables
font_config.cpp File Reference
#include "font/font_config.hpp"
#include "font/font_description.hpp"
#include "font/error.hpp"
#include "font/sdl_ttf.hpp"
#include "config.hpp"
#include "log.hpp"
#include "tstring.hpp"
#include "filesystem.hpp"
#include "game_config.hpp"
#include "serialization/parser.hpp"
#include "serialization/preprocessor.hpp"
#include "serialization/string_utils.hpp"
#include "serialization/unicode.hpp"
#include "preferences/general.hpp"
#include <list>
#include <set>
#include <stack>
#include <sstream>
#include <vector>
#include <cairo-features.h>
Include dependency graph for font_config.cpp:

Go to the source code of this file.

Namespaces

 font
 Note: Specific to sdl_ttf.
 

Macros

#define DBG_FT   LOG_STREAM(debug, log_font)
 
#define LOG_FT   LOG_STREAM(info, log_font)
 
#define WRN_FT   LOG_STREAM(warn, log_font)
 
#define ERR_FT   LOG_STREAM(err, log_font)
 

Functions

bool font::check_font_file (std::string name)
 Test if a font file exists. More...
 
static bool font::add_font_to_fontlist (const config &fonts_config, std::vector< font::subset_descriptor > &fontlist, const std::string &name)
 
bool font::load_font_config ()
 
const t_stringfont::get_font_families (family_class fclass=FONT_SANS_SERIF)
 Returns the currently defined fonts. More...
 

Variables

static lg::log_domain log_font ("font")
 
t_string font::family_order_sans
 
t_string font::family_order_mono
 

Macro Definition Documentation

#define DBG_FT   LOG_STREAM(debug, log_font)

Definition at line 55 of file font_config.cpp.

#define ERR_FT   LOG_STREAM(err, log_font)

Definition at line 58 of file font_config.cpp.

Referenced by font::load_font_config(), and font::manager::manager().

#define LOG_FT   LOG_STREAM(info, log_font)

Definition at line 56 of file font_config.cpp.

Referenced by font::manager::manager().

#define WRN_FT   LOG_STREAM(warn, log_font)

Definition at line 57 of file font_config.cpp.

Referenced by font::check_font_file().

Variable Documentation

lg::log_domain log_font("font")
static