Added support for the Font::Info struct

This commit is contained in:
Zachariah Brown committed 2015-02-24 10:41:32 -05:00
1 parent 302048d29e
commit 9f4120faf4
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
@@ -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;
}