JNGL
Easy to use cross-platform 2D game library
|
Same as jngl::Font but adds an outline. More...
#include <jngl/OutlinedFont.hpp>
Public Member Functions | |
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. | |
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. | |
double | getTextWidth (std::string_view) |
Calculates the width of text in scale-independent pixels if it would be drawn with this font. | |
Same as jngl::Font but adds an outline.
Definition at line 12 of file OutlinedFont.hpp.