mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-26 13:06: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
@@ -20,6 +20,7 @@ set(SRC
|
||||
${SRCROOT}/Font.cpp
|
||||
${SRCROOT}/FontStruct.h
|
||||
${INCROOT}/Font.h
|
||||
${INCROOT}/FontInfo.h
|
||||
${INCROOT}/Glyph.h
|
||||
${SRCROOT}/Image.cpp
|
||||
${SRCROOT}/ImageStruct.h
|
||||
|
||||
@@ -155,3 +155,14 @@ const sfTexture* sfFont_getTexture(sfFont* font, unsigned int characterSize)
|
||||
|
||||
return &font->Textures[characterSize];
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfFontInfo sfFont_getInfo(const sfFont* font)
|
||||
{
|
||||
sfFontInfo info = {NULL};
|
||||
CSFML_CHECK_RETURN(font, info);
|
||||
|
||||
info.family = font->This.getInfo().family.c_str();
|
||||
|
||||
return info;
|
||||
}
|
||||
Reference in new issue
Block a user