| 
    NasNas
    
   An intuitive and beginner friendly 2D game framework for C++ 
   | 
 
A font that can be created from a texture. More...
#include <BitmapFont.hpp>
Public Member Functions | |
| void | loadFromTexture (const sf::Texture &texture, const sf::Vector2u &glyph_size, unsigned advance) | 
| Creates a BitmapFont from a Texture.  More... | |
| auto | getTexture () const -> const sf::Texture * | 
| Get BitmapFont texture.  More... | |
| auto | getGlyphSize () const -> const sf::Vector2u & | 
| Get BitmapFont glyph size.  More... | |
| void | setCharacters (const std::wstring &characters) | 
| void | setCharactersAdvance (const std::map< std::wstring, unsigned > &advances) | 
| auto | getGlyph (wchar_t character) const -> const BitmapGlyph & | 
| Get the BitmapGlyph data of a given character.  More... | |
| auto | computeStringSize (const std::wstring &string) const -> sf::Vector2f | 
A font that can be created from a texture.
Definition at line 25 of file BitmapFont.hpp.
| auto ns::BitmapFont::getGlyph | ( | wchar_t | character | ) | const -> const BitmapGlyph & | 
Get the BitmapGlyph data of a given character.
| character | A character of the font. | 
| auto ns::BitmapFont::getGlyphSize | ( | ) | const -> const sf::Vector2u & | 
Get BitmapFont glyph size.
| auto ns::BitmapFont::getTexture | ( | ) | const -> const sf::Texture * | 
Get BitmapFont texture.
| void ns::BitmapFont::loadFromTexture | ( | const sf::Texture & | texture, | 
| const sf::Vector2u & | glyph_size, | ||
| unsigned | advance | ||
| ) | 
Creates a BitmapFont from a Texture.
| texture | Font texture | 
| glyph_size | Glyphs size in pixels | 
 1.8.13