Public Member Functions | List of all members
Font Class Reference

Font loaded from a TTF or OTF file. More...

#include <jngl/font.hpp>

Public Member Functions

 Font (const std::string &filename, unsigned int size)
 Creates a font from filename in size px.
void print (const std::string &, int x, int y)
 Uses the font to print something at x y. The color can be specified using setFontColor.
void print (const std::string &text, Vec2 position) const
 Draw text at position.
std::shared_ptr< FontImpl > getImpl ()
 Internal function.

Detailed Description

Font loaded from a TTF or OTF file.

Definition at line 18 of file font.hpp.

The documentation for this class was generated from the following file: