Skip to content

Instantly share code, notes, and snippets.

@AlexJWayne
Created March 20, 2009 19:58
Show Gist options
  • Save AlexJWayne/82545 to your computer and use it in GitHub Desktop.
Save AlexJWayne/82545 to your computer and use it in GitHub Desktop.
text = Magick::Draw.new
text.pointsize = options[:font_size].to_i
text.font = "#{RAILS_ROOT}/public/fonts/Tahoma.Bold.ttf"
my_image.annotate(text, 0, 0, offset_x, offset_y, string_to_write)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment