|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Configuration options for a Font2D. More...
#include <GREM/graphics_2d/Font2D.hpp>
Public Member Functions | |
| constexpr bool | operator== (const Font2DOptions &other) const =default |
| Compare these options to another set of options for equality. | |
Public Attributes | |
| resource::AtlasPackerOptions | atlasPackerOptions |
| Configuration options for the font's internal atlas packer. | |
| bool | useLinearFiltering = false |
| Use bilinear filtering rather than nearest-neighbor interpolation when rendering text at a non-1:1 scale using this font. | |
Configuration options for a Font2D.
|
nodiscardconstexprdefault |
Compare these options to another set of options for equality.
| other | the options to compare these to. |
| resource::AtlasPackerOptions grem::graphics::Font2DOptions::atlasPackerOptions |
Configuration options for the font's internal atlas packer.
| bool grem::graphics::Font2DOptions::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.