Class: Cairo::TextExtents

Inherits:
Object show all
Defined in:
lib/tagen/cairo.rb

Overview

Additional Method List

  • #w: _alias from width_

  • #h: _alias from h_

Instance Method Summary (collapse)

Instance Method Details

- (Array) to_a

Returns [x_bearing, y_bearing, width, height, x_advance, y_advance]

Returns:

  • (Array)

    [x_bearing, y_bearing, width, height, x_advance, y_advance]



97
98
99
# File 'lib/tagen/cairo.rb', line 97

def to_a
	[x_bearing, y_bearing, width, height, x_advance, y_advance]
end

- (Array) wh

Returns [width, height]

Returns:

  • (Array)

    [width, height]



88
# File 'lib/tagen/cairo.rb', line 88

def wh; [width, height] end

- (Array) xy_advance

Returns [x_advance, y_advance]

Returns:

  • (Array)

    [x_advance, y_advance]



91
# File 'lib/tagen/cairo.rb', line 91

def xy_advance; [x_advance, y_advance] end

- (Array) xy_bearing

Returns [x_bearing, y_bearing]

Returns:

  • (Array)

    [x_bearing, y_bearing]



94
# File 'lib/tagen/cairo.rb', line 94

def xy_bearing; [x_bearing, y_bearing] end