class

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 effect
  • outline : Optional outline/stroke effect
  • underline : Enable underline decoration
  • strikethrough : Enable strikethrough decoration
  • decoration_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)
Source

Instance methods

decoration_color
Source
decoration_color=(decoration_color : Color::Color | Nil)
Source
outline
Source
outline=(outline : Outline | Nil)
Source
shadow
Source
shadow=(shadow : Shadow | Nil)
Source
strikethrough
Source
strikethrough=(strikethrough : Bool)
Source
underline
Source
underline=(underline : Bool)
Source