Class: Fontist::Indexes::PreferredFamilyFontIndex
- Inherits:
-
Lutaml::Model::Collection
- Object
- Lutaml::Model::Collection
- Fontist::Indexes::PreferredFamilyFontIndex
show all
- Includes:
- IndexMixin
- Defined in:
- lib/fontist/indexes/preferred_family_font_index.rb
Overview
YAML file structure:
adobe arabic:
- adobe_reader_19.yml
myriad pro:
- adobe_reader_20.yml
akabara-cinderella:
- akabara-cinderella.yml
andale mono:
- andale.yml
- macos/andale_mono.yml
- opensuse_webcore_fonts.yml
- pclinuxos_webcore_fonts.yml
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from IndexMixin
#add_formula, #add_index_formula, #build, #build_with_formulas, included, #load_formulas, #load_index_formulas, #to_file
Instance Method Details
#index_key_for_style(style) ⇒ Object
33
34
35
|
# File 'lib/fontist/indexes/preferred_family_font_index.rb', line 33
def index_key_for_style(style)
style.preferred_family_name || style.family_name
end
|
#normalize_key(key) ⇒ Object
37
38
39
|
# File 'lib/fontist/indexes/preferred_family_font_index.rb', line 37
def normalize_key(key)
key.downcase
end
|