CrImage::Font::TextStyle
Inherits Reference / Object
Container for text rendering effects.
Combines multiple visual effects that can be applied to text. Effects render in order: shadow → outline → text → decorations.
Note: Use Drawer#draw_text with named parameters for simpler API.
Properties:
shadow: Optional drop shadow effectoutline: Optional outline/stroke effectunderline: Enable underline decorationstrikethrough: Enable strikethrough decorationdecoration_color: Color for underline/strikethrough (defaults to text color)
Constructors
new(shadow : Nil | CrImage::Font::Shadow = nil, outline : Nil | CrImage::Font::Outline = nil, underline : Bool = false, strikethrough : Bool = false, decoration_color : CrImage::Color::Color | Nil = nil)
SourceInstance methods
decoration_color
Sourcedecoration_color=(decoration_color : Color::Color | Nil)
Sourceoutline
Sourceoutline=(outline : Outline | Nil)
Sourceshadow
Sourceshadow=(shadow : Shadow | Nil)
Sourcestrikethrough
Sourcestrikethrough=(strikethrough : Bool)
Sourceunderline
Sourceunderline=(underline : Bool)
Source