A span of text with consistent styling. More...
#include <attributed_string.hpp>
Public Attributes | |
| std::string | text |
| std::string | font_family = "system" |
| float | font_size = 14.0f |
| int | font_weight = 400 |
| bool | italic = false |
| int | font_slant = 0 |
| Color | color = Color::rgba(255, 255, 255) |
| TextDecoration | decoration = TextDecoration::none |
| bool | decoration_override = false |
| Color | decoration_color = Color::rgba(255, 255, 255) |
| float | letter_spacing = 0 |
| bool | inherit_font_family = false |
| bool | inherit_font_size = false |
| bool | inherit_font_weight = false |
| bool | inherit_font_slant = false |
| bool | inherit_color = false |
| bool | inherit_letter_spacing = false |
A span of text with consistent styling.
| Color pulp::canvas::TextSpan::color = Color::rgba(255, 255, 255) |
| TextDecoration pulp::canvas::TextSpan::decoration = TextDecoration::none |
| Color pulp::canvas::TextSpan::decoration_color = Color::rgba(255, 255, 255) |
| bool pulp::canvas::TextSpan::decoration_override = false |
| std::string pulp::canvas::TextSpan::font_family = "system" |
| float pulp::canvas::TextSpan::font_size = 14.0f |
| int pulp::canvas::TextSpan::font_slant = 0 |
| int pulp::canvas::TextSpan::font_weight = 400 |
| bool pulp::canvas::TextSpan::inherit_color = false |
| bool pulp::canvas::TextSpan::inherit_font_family = false |
| bool pulp::canvas::TextSpan::inherit_font_size = false |
| bool pulp::canvas::TextSpan::inherit_font_slant = false |
| bool pulp::canvas::TextSpan::inherit_font_weight = false |
| bool pulp::canvas::TextSpan::inherit_letter_spacing = false |
| bool pulp::canvas::TextSpan::italic = false |
| float pulp::canvas::TextSpan::letter_spacing = 0 |
| std::string pulp::canvas::TextSpan::text |