#include <SFML/Graphics/Glyph.h>#include <SFML/Graphics/Types.h>Go to the source code of this file.
Functions | |
| CSFML_API sfFont * | sfFont_Create () |
| Create a new empty font. | |
| CSFML_API sfFont * | sfFont_CreateFromFile (const char *Filename, unsigned int CharSize, const sfUint32 *Charset) |
| Create a new font from a file. | |
| CSFML_API sfFont * | sfFont_CreateFromMemory (const char *Data, size_t SizeInBytes, unsigned int CharSize, const sfUint32 *Charset) |
| Create a new image font a file in memory. | |
| CSFML_API void | sfFont_Destroy (sfFont *Font) |
| Destroy an existing font. | |
| CSFML_API unsigned int | sfFont_GetCharacterSize (sfFont *Font) |
| Get the base size of characters in a font; All glyphs dimensions are based on this value. | |
| CSFML_API sfFont * | sfFont_GetDefaultFont () |
| Get the built-in default font (Arial). | |
| CSFML_API sfFont* sfFont_Create | ( | ) |
Create a new empty font.
| CSFML_API sfFont* sfFont_CreateFromFile | ( | const char * | Filename, | |
| unsigned int | CharSize, | |||
| const sfUint32 * | Charset | |||
| ) |
Create a new font from a file.
| Filename | : Path of the font file to load | |
| CharSize | : Size of characters in bitmap - the bigger, the higher quality | |
| Charset | : Characters set to generate (just pass NULL to get the default charset) |
| CSFML_API sfFont* sfFont_CreateFromMemory | ( | const char * | Data, | |
| size_t | SizeInBytes, | |||
| unsigned int | CharSize, | |||
| const sfUint32 * | Charset | |||
| ) |
Create a new image font a file in memory.
| Data | : Pointer to the file data in memory | |
| SizeInBytes | : Size of the data to load, in bytes | |
| CharSize | : Size of characters in bitmap - the bigger, the higher quality | |
| Charset | : Characters set to generate (just pass NULL to get the default charset) |
| CSFML_API void sfFont_Destroy | ( | sfFont * | Font | ) |
Destroy an existing font.
| Font | : Font to delete |
| CSFML_API unsigned int sfFont_GetCharacterSize | ( | sfFont * | Font | ) |
Get the base size of characters in a font; All glyphs dimensions are based on this value.
| Font | : Font object |
| CSFML_API sfFont* sfFont_GetDefaultFont | ( | ) |
Get the built-in default font (Arial).