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



31
32
33
# File 'lib/asciidoctor/pdf/ext/prawn/extensions.rb', line 31

def final_gap
  @final_gap
end

#heightObject

Returns the value of attribute height

Returns:

  • (Object)

    the current value of height



31
32
33
# File 'lib/asciidoctor/pdf/ext/prawn/extensions.rb', line 31

def height
  @height
end

#leadingObject

Returns the value of attribute leading

Returns:

  • (Object)

    the current value of leading



31
32
33
# File 'lib/asciidoctor/pdf/ext/prawn/extensions.rb', line 31

def leading
  @leading
end

#padding_bottomObject

Returns the value of attribute padding_bottom

Returns:

  • (Object)

    the current value of padding_bottom



31
32
33
# File 'lib/asciidoctor/pdf/ext/prawn/extensions.rb', line 31

def padding_bottom
  @padding_bottom
end

#padding_topObject

Returns the value of attribute padding_top

Returns:

  • (Object)

    the current value of padding_top



31
32
33
# File 'lib/asciidoctor/pdf/ext/prawn/extensions.rb', line 31

def padding_top
  @padding_top
end