lib/prawn/svg/font.rb
# Construct a subfamily name, ensuring that the subfamily is a valid one for the font.
Construct a subfamily name, ensuring that the subfamily is a valid one for the font.
Construct a subfamily name ensuring that the subfamily is a valid one for the font .
def subfamily
    if subfamilies = self.class.installed_fonts[name]
      if subfamilies.key?(subfamily_name)
        subfamily_name
      elsif subfamilies.key?(:normal)
        :normal
      else
        subfamilies.keys.first
      end
    end
  end
def subfamily if subfamilies = self . class . installed_fonts [ name ] if subfamilies . key? ( subfamily_name ) subfamily_name elsif subfamilies . key? ( :normal ) :normal else subfamilies . keys . first end end end
Construct a subfamily name, ensuring that the subfamily is a valid one for the font.
Construct a subfamily name ensuring that the subfamily is a valid one for the font .