The Battle for Wesnoth  1.19.0-dev
Classes | Namespaces | Macros | Functions | Variables
text.cpp File Reference
#include "font/text.hpp"
#include "font/font_config.hpp"
#include "font/pango/escape.hpp"
#include "font/pango/font.hpp"
#include "font/pango/hyperlink.hpp"
#include "font/pango/stream_ops.hpp"
#include "gettext.hpp"
#include "gui/widgets/helper.hpp"
#include "gui/core/log.hpp"
#include "sdl/point.hpp"
#include "serialization/unicode.hpp"
#include "preferences/general.hpp"
#include "video.hpp"
#include <cassert>
#include <cstring>
#include <stdexcept>
Include dependency graph for text.cpp:

Go to the source code of this file.

Classes

struct  font::inverse_table
 

Namespaces

 font
 Collection of helper functions relating to Pango formatting.
 

Macros

#define GETTEXT_DOMAIN   "wesnoth-lib"
 
#define DBG_FT   LOG_STREAM(debug, log_font)
 

Functions

void font::flush_texture_cache ()
 Flush the rendered text cache. More...
 
static void font::unpremultiply (uint8_t &value, const unsigned div)
 
static void font::from_cairo_format (uint32_t &c)
 Converts from cairo-format ARGB32 premultiplied alpha to plain alpha. More...
 
pango_text & font::get_text_renderer ()
 Returns a reference to a static pango_text object. More...
 
int font::get_max_height (unsigned size, font::family_class fclass=font::FONT_SANS_SERIF, pango_text::FONT_STYLE style=pango_text::STYLE_NORMAL)
 Returns the maximum glyph height of a font, in pixels. More...
 

Variables

static lg::log_domain log_font ("font")
 
static constexpr inverse_table font::inverse_table_
 

Macro Definition Documentation

◆ DBG_FT

#define DBG_FT   LOG_STREAM(debug, log_font)

Definition at line 41 of file text.cpp.

◆ GETTEXT_DOMAIN

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 16 of file text.cpp.

Variable Documentation

◆ log_font

lg::log_domain log_font("font") ( "font"  )
static