template<typename FONT, template< size_t, size_t, bool, bool > class T, size_t W, size_t H, bool GRAYSCALE, bool USE_SPAN, bool KERNING = false, text_rotation ROTATION = DEGREE_0>
class constixel::shapes::text_centered_aa< FONT, T, W, H, GRAYSCALE, USE_SPAN, KERNING, ROTATION >
Fluent API for drawing centered anti-aliased text.
Provides a chainable interface for drawing centered text using anti-aliased fonts.
template<typename FONT, template< size_t, size_t, bool, bool > class T, size_t W, size_t H, bool GRAYSCALE, bool USE_SPAN, bool KERNING = false, text_rotation ROTATION = DEGREE_0>
constixel::shapes::text_centered_aa< FONT, T, W, H, GRAYSCALE, USE_SPAN, KERNING, ROTATION >::text_centered_aa |
( |
image_type & | image, |
|
|
int32_t | x_, |
|
|
int32_t | y_, |
|
|
const char * | str_ ) |
|
inlineconstexpr |
Construct a centered anti-aliased text shape.
- Parameters
-
image | Target image to draw on |
x_ | X coordinate of center position |
y_ | Y coordinate of center position |
str_ | Text string to draw |
template<typename FONT, template< size_t, size_t, bool, bool > class T, size_t W, size_t H, bool GRAYSCALE, bool USE_SPAN, bool KERNING = false, text_rotation ROTATION = DEGREE_0>
Draw the centered text with the specified color.
- Parameters
-
- Returns
- Reference to this text for chaining