180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
|
# File 'lib/IFMapper/SVGMapExporter.rb', line 180
def self.add_titles( svg, opts, x, y, font_size, mapname, mapcreator )
if DEBUG_OUTPUT; puts "svg::SVGUtilities::add_titles" end
if opts['print_title'] == true
if not mapname or mapname == ''
if DEBUG_OUTPUT; puts "svg::SVGUtilities::add_titles:name is empty, not printing" end
else
svg, x, y = SVGUtilities::add_text(svg, x, y, (font_size*1.5).to_i, mapname, opts, '000000')
y = y + (opts['name_line_spacing'] * 4)
end
end
if opts['print_creator'] == true
if not mapcreator or mapcreator == ''
if DEBUG_OUTPUT; puts "svg::SVGUtilities::add_titles:creator is empty, not printing" end
else
svg, x, y = SVGUtilities::add_text(svg, x, y, (font_size*0.85).to_i, 'Map ' + opts['creator_prefix'] + mapcreator, opts, '000000')
y = y + (opts['name_line_spacing'] * 4)
end
end
return [svg, x, y]
end
|