# File lib/prawn/svg/font.rb, line 11 def self.map_font_family_to_pdf_font(font_family, font_style = nil) font_family.split(",").detect do |font| font = font.gsub(/['"]/, '').gsub(/\s{2,}/, ' ').strip.downcase built_in_font = BUILT_IN_FONTS.detect {|f| f.downcase == font} break built_in_font if built_in_font generic_font = GENERIC_CSS_FONT_MAPPING[font] break generic_font if generic_font break font.downcase if font_installed?(font, font_style) end end