Gosu
|
Functions to output text on bitmaps. More...
Go to the source code of this file.
Namespaces | |
Gosu | |
Functions | |
std::string | Gosu::default_font_name () |
Returns the name of a neutral font that is available on the current platform. More... | |
double | Gosu::text_width (const std::u32string &text, const std::string &font_name, double font_height, unsigned font_flags=0) |
Returns the width an unformatted line of text would span on a bitmap if it were drawn using draw_text with the same arguments. More... | |
double | Gosu::draw_text (Bitmap &bitmap, double x, double y, Color c, const std::u32string &text, const std::string &font_name, double font_height, unsigned font_flags=0) |
Draws a line of unformatted text on a bitmap. More... | |
Bitmap | Gosu::layout_text (const std::string &text, const std::string &font_name, double font_height, double line_spacing=0, int width=-1, Alignment align=AL_LEFT, unsigned font_flags=0) |
Creates a bitmap that is filled with the formatted text given to the function. More... | |
Bitmap | Gosu::layout_markup (const std::string &markup, const std::string &font_name, double font_height, double line_spacing=0, int width=-1, Alignment align=AL_LEFT, unsigned font_flags=0) |
Creates a bitmap that is filled with the formatted text given to the function. More... | |
Functions to output text on bitmaps.
Definition in file Text.hpp.