Sha256: 20a6faeb89b798ed89cf6e5cf43fd0a6709e23beedfdbc0dbd493ac0ea27d700
Contents?: true
Size: 410 Bytes
Versions: 17
Compression:
Stored size: 410 Bytes
Contents
module Fontist class FontistFont def initialize(font_name:) @font_name = font_name end def self.find(name) new(font_name: name).find end def find styles = FormulaPaths.new(font_paths).find(@font_name) return unless styles styles.map { |x| x[:path] } end private def font_paths Dir.glob(Fontist.fonts_path.join("**")) end end end
Version data entries
17 entries across 17 versions & 1 rubygems