Displaying 1 result from an estimated 1 matches for "zrnic".
Did you mean:
rnic
2007 Nov 07
7
Help on loop
Hey,
I have got a script that returns a long list of font family names, which
I all want to store in a variable (array). I tried doing this with @f =
font.family also in the for loop below but it only prints the last item
when I want to display the results.
require ''rubygems''
require ''RMagick''
include Magick
for font in Magick.fonts
puts font.family
end