Class: Arrolio::TextLayout::Line::PlacedRun

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#chunk_widthsObject

Returns the value of attribute chunk_widths

Returns:

  • (Object)

    the current value of chunk_widths



14
15
16
# File 'lib/arrolio/text_layout/line.rb', line 14

def chunk_widths
  @chunk_widths
end

#runObject

Returns the value of attribute run

Returns:

  • (Object)

    the current value of run



14
15
16
# File 'lib/arrolio/text_layout/line.rb', line 14

def run
  @run
end

#x_offsetObject

Returns the value of attribute x_offset

Returns:

  • (Object)

    the current value of x_offset



14
15
16
# File 'lib/arrolio/text_layout/line.rb', line 14

def x_offset
  @x_offset
end

Instance Method Details

#freezeObject



15
16
17
18
# File 'lib/arrolio/text_layout/line.rb', line 15

def freeze
  run.freeze
  super
end