Text.hpp File Reference

Functions to output text on bitmaps. More...

Go to the source code of this file.


Namespaces

namespace  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.
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.
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.
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.
Bitmap Gosu::createText (const std::wstring &text, const std::wstring &fontName, unsigned fontHeight, int lineSpacing, unsigned maxWidth, TextAlign align, unsigned fontFlags=0)
 Creates a bitmap that is filled with the formatted text given to the function.
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.


Detailed Description

Functions to output text on bitmaps.

Definition in file Text.hpp.