Class: Harfbuzz::GlyphExtents

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/harfbuzz/font.rb

Instance Method Summary collapse

Instance Method Details

#heightObject



28
29
30
# File 'lib/harfbuzz/font.rb', line 28

def height
  self[:height]
end

#inspectObject



12
13
14
# File 'lib/harfbuzz/font.rb', line 12

def inspect
  "<#{self.class}: x_bearing = #{x_bearing}, y_bearing = #{y_bearing}, width = #{width}, height = #{height}>"
end

#widthObject



24
25
26
# File 'lib/harfbuzz/font.rb', line 24

def width
  self[:width]
end

#x_bearingObject



16
17
18
# File 'lib/harfbuzz/font.rb', line 16

def x_bearing
  self[:x_bearing]
end

#y_bearingObject



20
21
22
# File 'lib/harfbuzz/font.rb', line 20

def y_bearing
  self[:y_bearing]
end