108
109
110
111
112
113
114
115
116
|
# File 'frameit/lib/frameit/config_parser.rb', line 108
def check_fonts(value)
UI.user_error!("`fonts` must be an array") unless value.kind_of?(Array)
value.each do |current|
UI.user_error!("You must specify a font path") if current.fetch('font', '').length == 0
UI.user_error!("Could not find font at path '#{File.expand_path(current.fetch('font'))}'") unless File.exist?(current.fetch('font'))
UI.user_error!("`supported` must be an array") unless current.fetch('supported', []).kind_of?(Array)
end
end
|