Class: FontMetrics::Metrics
- Inherits:
-
Struct
- Object
- Struct
- FontMetrics::Metrics
- Defined in:
- lib/rsyntaxtree/utils.rb
Overview
height is the vertical rhythm (see LINE_HEIGHT_FACTOR), which is what the layout advances by. ink_height and ink_above describe where the glyphs actually are: how tall the marks are, and how far the tallest reaches above the baseline. A box or circle drawn around text needs the latter — sized by the rhythm it would stand a head taller than the letters it encloses.
Instance Attribute Summary collapse
-
#height ⇒ Object
Returns the value of attribute height.
-
#ink_above ⇒ Object
Returns the value of attribute ink_above.
-
#ink_height ⇒ Object
Returns the value of attribute ink_height.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Attribute Details
#height ⇒ Object
Returns the value of attribute height
119 120 121 |
# File 'lib/rsyntaxtree/utils.rb', line 119 def height @height end |
#ink_above ⇒ Object
Returns the value of attribute ink_above
119 120 121 |
# File 'lib/rsyntaxtree/utils.rb', line 119 def ink_above @ink_above end |
#ink_height ⇒ Object
Returns the value of attribute ink_height
119 120 121 |
# File 'lib/rsyntaxtree/utils.rb', line 119 def ink_height @ink_height end |
#width ⇒ Object
Returns the value of attribute width
119 120 121 |
# File 'lib/rsyntaxtree/utils.rb', line 119 def width @width end |