Font loaded from a TTF or OTF file.
Same as jngl::Font but adds an outline.
double getTextWidth(std::string_view)
Calculates the width of text in scale-independent pixels if it would be drawn with this font.
void print(const Mat3 &modelview, const std::string &text, jngl::Rgba innerColor, jngl::Rgba outerColor) const
Print text using modelview in innerColor and an outline in outerColor.
OutlinedFont(const std::string &filename, unsigned int size, float strokePercentage)
Set strokePercentage to a positive value in %, e.g. 5 to add an outline of 5% to the font.
Object representing a RGBA color.
Contains jngl::Font class and related functions.
jngl::Mat3 modelview()
Returns a copy of the global ModelView matrix.