FifeGUI 0.2.0
A C++ GUI library designed for games.
fcn::ImageFontConfig Struct Reference

#include <imagefont.hpp>

Public Attributes

Color explicitSeparator = Color{255, 0, 255, 255}
int glyphPadding = 0
SeparatorStrategy strategy = SeparatorStrategy::Auto
bool verbose = false

Detailed Description

Configuration struct for ImageFont constructors.

Strategy: The method used to determine the separator color in the font image. ExplicitSeparator: The RGB color to use as a separator when using the ExplicitColor strategy (default magenta). GlyphPadding: The number of pixels to ignore around detected glyphs when scanning (useful for anti-aliased fonts). Verbose: If true, the constructor will print debug information about the scanning process to standard error.

Definition at line 58 of file imagefont.hpp.

Member Data Documentation

◆ explicitSeparator

Color fcn::ImageFontConfig::explicitSeparator = Color{255, 0, 255, 255}

Explicit separator color used when ExplicitColor strategy is selected.

Definition at line 68 of file imagefont.hpp.

◆ glyphPadding

int fcn::ImageFontConfig::glyphPadding = 0

Number of pixels to pad/ignore around detected glyphs.

Definition at line 73 of file imagefont.hpp.

Referenced by fcn::ImageFont::ImageFont(), fcn::ImageFont::ImageFont(), and fcn::ImageFont::ImageFont().

◆ strategy

SeparatorStrategy fcn::ImageFontConfig::strategy = SeparatorStrategy::Auto

Strategy used to detect separator color in the image.

Definition at line 63 of file imagefont.hpp.

Referenced by fcn::ImageFont::ImageFont(), fcn::ImageFont::ImageFont(), and fcn::ImageFont::ImageFont().

◆ verbose

bool fcn::ImageFontConfig::verbose = false

If true, enable verbose debug output while scanning fonts.

Definition at line 78 of file imagefont.hpp.

Referenced by fcn::ImageFont::ImageFont(), fcn::ImageFont::ImageFont(), and fcn::ImageFont::ImageFont().


The documentation for this struct was generated from the following file: