Class: Asciidoctor::Prawn::Extensions::LineMetrics
- 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
-
#final_gap ⇒ Object
Returns the value of attribute final_gap.
-
#height ⇒ Object
Returns the value of attribute height.
-
#leading ⇒ Object
Returns the value of attribute leading.
-
#padding_bottom ⇒ Object
Returns the value of attribute padding_bottom.
-
#padding_top ⇒ Object
Returns the value of attribute padding_top.
Instance Attribute Details
#final_gap ⇒ Object
Returns the value of attribute final_gap
35 36 37 |
# File 'lib/asciidoctor/pdf/ext/prawn/extensions.rb', line 35 def final_gap @final_gap end |
#height ⇒ Object
Returns the value of attribute height
35 36 37 |
# File 'lib/asciidoctor/pdf/ext/prawn/extensions.rb', line 35 def height @height end |
#leading ⇒ Object
Returns the value of attribute leading
35 36 37 |
# File 'lib/asciidoctor/pdf/ext/prawn/extensions.rb', line 35 def leading @leading end |
#padding_bottom ⇒ Object
Returns the value of attribute padding_bottom
35 36 37 |
# File 'lib/asciidoctor/pdf/ext/prawn/extensions.rb', line 35 def padding_bottom @padding_bottom end |
#padding_top ⇒ Object
Returns the value of attribute padding_top
35 36 37 |
# File 'lib/asciidoctor/pdf/ext/prawn/extensions.rb', line 35 def padding_top @padding_top end |