module Fontist::Import
Public Class Methods
Source
# File lib/fontist/import.rb, line 4 def name_to_filename(name) "#{name.downcase.gsub(' ', '_')}.yml" end
Source
# File lib/fontist/import.rb, line 13 def normalize_filename(name) name.downcase.gsub(" ", "_") end
Normalize a font name to a consistent base filename (without extension) This MUST match the normalization in FormulaBuilder#generate_filename
@param name [String] Font family name @return [String] Normalized base filename (no extension)