Class: Fontist::SystemIndex

Inherits:
Object
  • Object
show all
Includes:
Utils::Locking
Defined in:
lib/fontist/system_index.rb

Class Method Summary collapse

Methods included from Utils::Locking

#lock

Class Method Details

.fontist_indexObject



224
225
226
227
228
229
# File 'lib/fontist/system_index.rb', line 224

def self.fontist_index
  @fontist_index = SystemIndexFontCollection.from_file(
    path: Fontist.fontist_index_path,
    paths_loader: -> { SystemFont.fontist_font_paths },
  )
end

.system_indexObject



217
218
219
220
221
222
# File 'lib/fontist/system_index.rb', line 217

def self.system_index
  @system_index = SystemIndexFontCollection.from_file(
    path: Fontist.system_index_path,
    paths_loader: -> { SystemFont.font_paths },
  )
end