Class: Asciidoctor::Prawn::Extensions::LineMetrics

Inherits:
Struct
  • Object
show all
Defined in:
lib/asciidoctor/pdf/ext/prawn/extensions.rb

Overview

  • :height is the height of a line

  • :leading is spacing between adjacent lines

  • :padding_top is half line spacing, plus any line_gap in the font

  • :padding_bottom is half line spacing

  • :final_gap determines whether a gap is added below the last line

Instance Attribute Summary collapse

Instance Attribute Details

#final_gapObject

Returns the value of attribute final_gap

Returns:

  • (Object)

    the current value of final_gap



35
36
37
# File 'lib/asciidoctor/pdf/ext/prawn/extensions.rb', line 35

def final_gap
  @final_gap
end

#heightObject

Returns the value of attribute height

Returns:

  • (Object)

    the current value of height



35
36
37
# File 'lib/asciidoctor/pdf/ext/prawn/extensions.rb', line 35

def height
  @height
end

#leadingObject

Returns the value of attribute leading

Returns:

  • (Object)

    the current value of leading



35
36
37
# File 'lib/asciidoctor/pdf/ext/prawn/extensions.rb', line 35

def leading
  @leading
end

#padding_bottomObject

Returns the value of attribute padding_bottom

Returns:

  • (Object)

    the current value of padding_bottom



35
36
37
# File 'lib/asciidoctor/pdf/ext/prawn/extensions.rb', line 35

def padding_bottom
  @padding_bottom
end

#padding_topObject

Returns the value of attribute padding_top

Returns:

  • (Object)

    the current value of padding_top



35
36
37
# File 'lib/asciidoctor/pdf/ext/prawn/extensions.rb', line 35

def padding_top
  @padding_top
end