Hi all.. i am working on rails version 1.2.3 (it is must to work on version
1.2.3) & ruby 1.8.6. For my project i want to convert text in to images
files.. so that i use rmagick.. it is working fine for only english.. i need
to convert images for multiple languages. I have showed my code below
require "RMagick"
def show_textimg
bg = Magick::Image.new(120,20){self.background_color = "#9E9E9E"}
ad_text = Magick::Draw.new
ad_text.text(23,14,@ad.ad_text) # here the input text.... only working
good for english but i want to convert multi language. for example if i pass
@ad.ad_text="ドの半角⇔全角"
ad_text.draw(bg)
bg.write "#{RAILS_ROOT}/public/ad/ad_picture/#[email protected]}-textimg.jpg"
end
Is there any way for this.
Very soon Replies are greatly appreciate..
Thank,
Arun..
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---