The Battle for Wesnoth  1.19.0-dev
Namespaces | Functions
text_formatting.hpp File Reference
#include "color.hpp"
#include "font/standard_colors.hpp"
#include <string>
Include dependency graph for text_formatting.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 font
 Collection of helper functions relating to Pango formatting.
 

Functions

std::string font::span_color (const color_t &color)
 Returns a Pango formatting string using the provided color_t object. More...
 
std::string font::span_color (const color_t &color, const std::string &data)
 Like span_color(const color_t&), but append the data string and a "</span>" tag. More...
 
std::string font::get_pango_color_from_id (const std::string &id)
 Returns a hex color string from a color range. More...
 
std::string font::get_color_string_pango (const std::string &id)
 Returns the name of a color range, colored with its own color. More...