mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-27 13:36:12 +01:00
PR 1690 Add font enable / disable smoothing
Also added a check for whether the font is smoothing
This commit is contained in:
1 parent
7cbcd8f9fa
commit
e606b52c39
2 files changed
+49
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user