PR 1690 Add font enable / disable smoothing

Also added a check for whether the font is smoothing
This commit is contained in:
Shane Whitmire authored and Lukas Dürrenberger committed 2023-06-26 21:20:24 +02:00
1 parent 7cbcd8f9fa
commit e606b52c39
2 files changed
+49

No files matched your search

+20
View File
@@ -152,6 +152,26 @@ const sfTexture* sfFont_getTexture(sfFont* font, unsigned int characterSize)
return &font->Textures[characterSize];
}
////////////////////////////////////////////////////////////
void sfFont_setSmooth(sfFont* font, sfBool smooth)
{
font->This.setSmooth(smooth == sfTrue);
}
////////////////////////////////////////////////////////////
const sfBool sfFont_isSmooth(const sfFont *font)
{
if (font->This.isSmooth())
{
return sfTrue;
}
return sfFalse;
}
////////////////////////////////////////////////////////////
sfFontInfo sfFont_getInfo(const sfFont* font)
{