mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-26 21:16:13 +01:00
Added support for the Font::Info struct
This commit is contained in:
1 parent
302048d29e
commit
9f4120faf4
4 files changed
+70
-1
No files matched your search
@@ -29,6 +29,7 @@
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Graphics/Export.h>
|
||||
#include <SFML/Graphics/FontInfo.h>
|
||||
#include <SFML/Graphics/Glyph.h>
|
||||
#include <SFML/Graphics/Types.h>
|
||||
#include <SFML/System/InputStream.h>
|
||||
@@ -132,5 +133,19 @@ CSFML_GRAPHICS_API float sfFont_getLineSpacing(sfFont* font, unsigned int charac
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API const sfTexture* sfFont_getTexture(sfFont* font, unsigned int characterSize);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Get the font information
|
||||
///
|
||||
/// The returned structure will remain valid only if the font
|
||||
/// is still valid. If the font is invalid an invalid structure
|
||||
/// is returned.
|
||||
///
|
||||
/// \param font Source font
|
||||
///
|
||||
/// \return A structure that holds the font information
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API sfFontInfo sfFont_getInfo(const sfFont* font);
|
||||
|
||||
#endif // SFML_IMAGE_H
|
||||
|
||||
#endif // SFML_FONT_H
|
||||
Reference in new issue
Block a user