Merge pull request #58 from zsbzsb/feature/fontinfo_struct

Added support for the Font::Info struct
This commit is contained in:
Laurent Gomila committed 2015-02-24 16:56:10 +01:00
commit e10f7caecb
4 files changed
+70 -1

No files matched your search

+1
View File
@@ -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
+11
View File
@@ -151,3 +151,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;
}