Method: Vips::Image.text

Defined in:
lib/vips8/methods.rb

.text(text, opts = {}) ⇒ Vips::Image

Make a text image.

Parameters:

  • text (String)

    Text to render

  • opts (Hash) (defaults to: {})

    Set of options

Options Hash (opts):

  • :font (String)

    Font to render width

  • :width (Integer)

    Maximum image width in pixels

  • :align (Vips::Align)

    Align on the low, centre or high edge

  • :dpi (Integer)

    DPI to render at

  • :spacing (Integer)

    Line spacing

Returns:

[View source]

# File 'lib/vips8/methods.rb', line 553