Class: Arrolio::TextLayout::Line::PlacedRun
- Inherits:
-
Struct
- Object
- Struct
- Arrolio::TextLayout::Line::PlacedRun
- Defined in:
- lib/arrolio/text_layout/line.rb
Overview
chunk_widths carries the width of each emission chunk
(text split after whitespace), computed by the BREAKER that
owns glyph measurement. The renderer advances by these
widths — it never measures, so layout and render cannot
drift apart (the source of the word-overlap and
measure-overflow bugs).
Instance Attribute Summary collapse
-
#chunk_widths ⇒ Object
Returns the value of attribute chunk_widths.
-
#run ⇒ Object
Returns the value of attribute run.
-
#x_offset ⇒ Object
Returns the value of attribute x_offset.
Instance Method Summary collapse
Instance Attribute Details
#chunk_widths ⇒ Object
Returns the value of attribute chunk_widths
14 15 16 |
# File 'lib/arrolio/text_layout/line.rb', line 14 def chunk_widths @chunk_widths end |
#run ⇒ Object
Returns the value of attribute run
14 15 16 |
# File 'lib/arrolio/text_layout/line.rb', line 14 def run @run end |
#x_offset ⇒ Object
Returns the value of attribute x_offset
14 15 16 |
# File 'lib/arrolio/text_layout/line.rb', line 14 def x_offset @x_offset end |
Instance Method Details
#freeze ⇒ Object
15 16 17 18 |
# File 'lib/arrolio/text_layout/line.rb', line 15 def freeze run.freeze super end |