The Battle for Wesnoth  1.19.9+dev
Namespaces | Functions
attributes.cpp File Reference
#include "font/attributes.hpp"
#include "font/font_config.hpp"
#include "color.hpp"
#include "gui/core/log.hpp"
#include "preferences/preferences.hpp"
#include "tstring.hpp"
#include "video.hpp"
#include <memory>
Include dependency graph for attributes.cpp:

Go to the source code of this file.

Namespaces

 font
 Graphical text output.
 

Functions

void font::add_attribute_size (attribute_list &list, unsigned offset_start, unsigned offset_end, int size)
 Add Pango font size attribute to a specific portion of text. More...
 
void font::add_attribute_weight (attribute_list &list, unsigned offset_start, unsigned offset_end, PangoWeight weight)
 Add Pango font weight attribute to a specific portion of text. More...
 
void font::add_attribute_style (attribute_list &list, unsigned offset_start, unsigned offset_end, PangoStyle style)
 Add Pango font style attribute to a specific portion of text, used to set italic/oblique text. More...
 
void font::add_attribute_underline (attribute_list &list, unsigned offset_start, unsigned offset_end, PangoUnderline underline)
 Add Pango underline attribute to a specific portion of text. More...
 
void font::add_attribute_fg_color (attribute_list &list, unsigned offset_start, unsigned offset_end, const color_t &color)
 Add Pango fg color attribute to a specific portion of text. More...
 
void font::add_attribute_bg_color (attribute_list &list, unsigned offset_start, unsigned offset_end, const color_t &color)
 Mark a specific portion of text for highlighting. More...
 
void font::add_attribute_font_family (attribute_list &list, unsigned offset_start, unsigned offset_end, font::family_class family)
 Add Pango font family attribute to a specific portion of text. More...
 

Variable Documentation

◆ value_

std::unique_ptr<PangoAttribute, void(*)(PangoAttribute*)> value_
private