libdonut
2.3.2
Application framework for cross-platform game development in C++20
|
Configuration options for a Font. More...
#include <donut/graphics/Font.hpp>
Public Attributes | |
bool | useLinearFiltering = false |
Use bilinear filtering rather than nearest-neighbor interpolation when rendering text at a non-1:1 scale using this font. More... | |
Configuration options for a Font.
bool donut::graphics::FontOptions::useLinearFiltering = false |
Use bilinear filtering rather than nearest-neighbor interpolation when rendering text at a non-1:1 scale using this font.
When set to true, this will cause scaled text to appear smoother compared to regular blocky nearest-neighbor scaling. Using linear filtering can help reduce aliasing artifacts on the glyph edges, but also makes the text more blurry.