Class: Metanorma::FontistUtils
- Inherits:
-
Object
- Object
- Metanorma::FontistUtils
- Defined in:
- lib/metanorma/fontist_utils.rb
Class Method Summary collapse
Class Method Details
.fontist_font_locations(processor, options) ⇒ Object
96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/metanorma/fontist_utils.rb', line 96 def self.fontist_font_locations(processor, ) if missing_fontist_manifest?(processor) || [:no_install_fonts] return nil end dump_fontist_manifest_locations(processor.fonts_manifest) rescue Fontist::Errors::FormulaIndexNotFoundError raise unless [:continue_without_fonts] nil end |
.install_fonts(processor, options) ⇒ Object
81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/metanorma/fontist_utils.rb', line 81 def self.install_fonts(processor, ) return unless validate_install_fonts(processor, ) @@updated_formulas_repo = false manifest = processor.fonts_manifest agree_to_terms, can_without_fonts, no_progress = () install_fonts_safe( manifest, agree_to_terms, can_without_fonts, no_progress ) end |