class Fontist::SystemIndex
Public Class Methods
Source
# File lib/fontist/system_index.rb, line 243 def self.fontist_index current_path = Fontist.fontist_index_path return @fontist_index if !@fontist_index.nil? && @fontist_index_path == current_path @fontist_index_path = current_path @fontist_index = SystemIndexFontCollection.from_file( path: current_path, paths_loader: -> { SystemFont.fontist_font_paths }, ) end
Source
# File lib/fontist/system_index.rb, line 232 def self.system_index current_path = Fontist.system_index_path return @system_index if !@system_index.nil? && @system_index_path == current_path @system_index_path = current_path @system_index = SystemIndexFontCollection.from_file( path: current_path, paths_loader: -> { SystemFont.font_paths }, ) end