Encapsulation of the raylib font.
More...
#include <RlFont.hpp>
|
| | RlFont () |
| | Create a RlFont, using default parameters. More...
|
| |
| | RlFont (const std::string &fontPath) |
| | Create a RlFont, using a font path Load font from file into GPU memory (VRAM) More...
|
| |
| | RlFont (const int &fontSize) |
| | Create a RlFont, with custom font size. More...
|
| |
| | RlFont (const std::string &fontPath, const int &fontSize=20, int *fontChars=nullptr, const int &glyphCount=0) |
| | Create a RlFont, using a font path and a font size Load font from file with extended parameters. More...
|
| |
| | RlFont (const image::RlImage &image, const RlColor &key, const int &firstChar) |
| | Create a RlFont, using an iamge, key color and first character Load font from Image (XNA style) More...
|
| |
| | RlFont (const std::string &fileType, const unsigned char *fileData, int dataSize, const int &fontSize=20, int *fontChars=nullptr, const int &glyphCount=0) |
| | Create a RlFont, using a file type and a file data Load font from memory buffer, fileType refers to extension: i.e. '.ttf'. More...
|
| |
| | ~RlFont () |
| | Destroy the RlFont. More...
|
| |
| const Font & | getFont () const |
| | Get the raylib font. More...
|
| |
| const std::string & | getFontPath () const |
| | Get the font path. More...
|
| |
| int | getFontSize () const |
| | Get the font size. More...
|
| |
Encapsulation of the raylib font.
◆ RlFont() [1/6]
| raylib::text::RlFont::RlFont |
( |
| ) |
|
Create a RlFont, using default parameters.
◆ RlFont() [2/6]
| raylib::text::RlFont::RlFont |
( |
const std::string & |
fontPath | ) |
|
|
explicit |
Create a RlFont, using a font path Load font from file into GPU memory (VRAM)
- Parameters
-
◆ RlFont() [3/6]
| raylib::text::RlFont::RlFont |
( |
const int & |
fontSize | ) |
|
|
inlineexplicit |
Create a RlFont, with custom font size.
- Parameters
-
◆ RlFont() [4/6]
| raylib::text::RlFont::RlFont |
( |
const std::string & |
fontPath, |
|
|
const int & |
fontSize = 20, |
|
|
int * |
fontChars = nullptr, |
|
|
const int & |
glyphCount = 0 |
|
) |
| |
|
explicit |
Create a RlFont, using a font path and a font size Load font from file with extended parameters.
- Parameters
-
| fontPath | the font path |
| fontSize | the font size |
| fontChars | the font characters |
| glyphCount | the glyph count |
◆ RlFont() [5/6]
| raylib::text::RlFont::RlFont |
( |
const image::RlImage & |
image, |
|
|
const RlColor & |
key, |
|
|
const int & |
firstChar |
|
) |
| |
|
explicit |
Create a RlFont, using an iamge, key color and first character Load font from Image (XNA style)
- Parameters
-
| image | the image |
| key | the key color |
| firstChar | the first character |
◆ RlFont() [6/6]
| raylib::text::RlFont::RlFont |
( |
const std::string & |
fileType, |
|
|
const unsigned char * |
fileData, |
|
|
int |
dataSize, |
|
|
const int & |
fontSize = 20, |
|
|
int * |
fontChars = nullptr, |
|
|
const int & |
glyphCount = 0 |
|
) |
| |
|
explicit |
Create a RlFont, using a file type and a file data Load font from memory buffer, fileType refers to extension: i.e. '.ttf'.
- Parameters
-
| fileType | the file type (ttf, otf) |
| fileData | the file data |
| dataSize | the data size |
| fontSize | the font size |
| fontChars | the font characters |
| glyphCount | the glyph count |
◆ ~RlFont()
| raylib::text::RlFont::~RlFont |
( |
| ) |
|
◆ getDefaultFont()
Get the default font (FontSize: 20)
- Returns
- the default font
◆ getFont()
| const Font & raylib::text::RlFont::getFont |
( |
| ) |
const |
Get the raylib font.
- Returns
- the raylib font
◆ getFontPath()
| const std::string & raylib::text::RlFont::getFontPath |
( |
| ) |
const |
Get the font path.
- Returns
- the font path
◆ getFontSize()
| int raylib::text::RlFont::getFontSize |
( |
| ) |
const |
Get the font size.
- Returns
- the font size
The documentation for this class was generated from the following files: