Functions to output text on bitmaps. More...
Go to the source code of this file.
Namespaces | |
| Gosu | |
| The library's main namespace. | |
Functions | |
| std::wstring | Gosu::defaultFontName () |
| Returns the name of a neutral font that is available on the current platform. More... | |
| unsigned | Gosu::textWidth (const std::wstring &text, const std::wstring &fontName, unsigned fontHeight, unsigned fontFlags=0) |
| Returns the width an unformatted line of text would span on a bitmap if it were drawn using drawText with the same arguments. More... | |
| void | Gosu::drawText (Bitmap &bitmap, const std::wstring &text, int x, int y, Color c, const std::wstring &fontName, unsigned fontHeight, unsigned fontFlags=0) |
| Draws a line of unformatted text on a bitmap. More... | |
| Bitmap | Gosu::createText (const std::wstring &text, const std::wstring &fontName, unsigned fontHeight, unsigned fontFlags=0) |
| Creates a bitmap that is filled with a line of formatted text given to the function. More... | |
| Bitmap | Gosu::createText (const std::wstring &text, const std::wstring &fontName, unsigned fontHeight, int lineSpacing, unsigned width, TextAlign align, unsigned fontFlags=0) |
| Creates a bitmap that is filled with the formatted text given to the function. More... | |
| void | Gosu::registerEntity (const std::wstring &name, const Bitmap &replacement) |
| Registers a new HTML-style entity that can subsequently be used with Gosu::Font and Gosu::createText. More... | |
Functions to output text on bitmaps.
Definition in file Text.hpp.