fontist 2.1.4 → 2.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/Gemfile +1 -0
  4. data/docs/.vitepress/config.ts +17 -0
  5. data/docs/cli/create-formula.md +6 -0
  6. data/docs/cli/import.md +4 -0
  7. data/docs/guide/formulas.md +73 -0
  8. data/docs/guide/installation.md +62 -0
  9. data/docs/guide/maintainer/import.md +372 -0
  10. data/docs/guide/maintainer/index.md +37 -0
  11. data/docs/guide/platforms/index.md +72 -0
  12. data/docs/guide/platforms/macos.md +151 -0
  13. data/docs/guide/platforms/windows.md +220 -0
  14. data/fontist.gemspec +0 -1
  15. data/lib/fontist/cache/manager.rb +0 -2
  16. data/lib/fontist/cache.rb +6 -0
  17. data/lib/fontist/cli/thor_ext.rb +0 -2
  18. data/lib/fontist/cli.rb +0 -9
  19. data/lib/fontist/collection_file.rb +0 -3
  20. data/lib/fontist/font.rb +0 -6
  21. data/lib/fontist/font_collection.rb +0 -1
  22. data/lib/fontist/font_file.rb +0 -1
  23. data/lib/fontist/font_installer.rb +0 -5
  24. data/lib/fontist/font_model.rb +0 -1
  25. data/lib/fontist/font_path.rb +0 -2
  26. data/lib/fontist/formula.rb +0 -13
  27. data/lib/fontist/formula_picker.rb +0 -2
  28. data/lib/fontist/google_import_source.rb +0 -2
  29. data/lib/fontist/import/convert_formulas.rb +0 -2
  30. data/lib/fontist/import/create_formula.rb +0 -4
  31. data/lib/fontist/import/files/collection_file.rb +0 -1
  32. data/lib/fontist/import/files.rb +8 -0
  33. data/lib/fontist/import/font_metadata_extractor.rb +0 -1
  34. data/lib/fontist/import/formula_builder.rb +0 -6
  35. data/lib/fontist/import/google/api.rb +0 -9
  36. data/lib/fontist/import/google/data_sources/base.rb +0 -1
  37. data/lib/fontist/import/google/data_sources/github.rb +0 -3
  38. data/lib/fontist/import/google/data_sources/ttf.rb +0 -2
  39. data/lib/fontist/import/google/data_sources/vf.rb +0 -2
  40. data/lib/fontist/import/google/data_sources/woff2.rb +0 -2
  41. data/lib/fontist/import/google/data_sources.rb +13 -0
  42. data/lib/fontist/import/google/font_database.rb +0 -10
  43. data/lib/fontist/import/google/metadata_adapter.rb +0 -1
  44. data/lib/fontist/import/google/models/font_family.rb +0 -1
  45. data/lib/fontist/import/google/models/metadata.rb +1 -9
  46. data/lib/fontist/import/google/models/source_metadata.rb +0 -1
  47. data/lib/fontist/import/google/models.rb +16 -0
  48. data/lib/fontist/import/google.rb +7 -2
  49. data/lib/fontist/import/google_fonts_importer.rb +0 -5
  50. data/lib/fontist/import/google_import.rb +1 -8
  51. data/lib/fontist/import/helpers.rb +8 -0
  52. data/lib/fontist/import/macos.rb +0 -6
  53. data/lib/fontist/import/manual_formula_builder.rb +0 -2
  54. data/lib/fontist/import/models.rb +7 -0
  55. data/lib/fontist/import/otf/font_file.rb +0 -2
  56. data/lib/fontist/import/otf.rb +7 -0
  57. data/lib/fontist/import/recursive_extraction.rb +0 -5
  58. data/lib/fontist/import/sil_import.rb +0 -3
  59. data/lib/fontist/import/upgrade_formulas.rb +1 -11
  60. data/lib/fontist/import.rb +23 -0
  61. data/lib/fontist/import_cli.rb +0 -9
  62. data/lib/fontist/index.rb +0 -4
  63. data/lib/fontist/index_cli.rb +0 -2
  64. data/lib/fontist/indexes/base_font_collection_index.rb +0 -1
  65. data/lib/fontist/indexes/default_family_font_index.rb +0 -2
  66. data/lib/fontist/indexes/directory_snapshot.rb +0 -2
  67. data/lib/fontist/indexes/filename_index.rb +0 -2
  68. data/lib/fontist/indexes/font_index.rb +0 -3
  69. data/lib/fontist/indexes/fontist_index.rb +0 -2
  70. data/lib/fontist/indexes/incremental_index_updater.rb +0 -4
  71. data/lib/fontist/indexes/preferred_family_font_index.rb +0 -2
  72. data/lib/fontist/indexes/system_index.rb +0 -2
  73. data/lib/fontist/indexes/user_index.rb +0 -2
  74. data/lib/fontist/indexes.rb +18 -0
  75. data/lib/fontist/install_location.rb +0 -4
  76. data/lib/fontist/install_locations/fontist_location.rb +0 -2
  77. data/lib/fontist/install_locations/system_location.rb +0 -2
  78. data/lib/fontist/install_locations/user_location.rb +0 -2
  79. data/lib/fontist/install_locations.rb +8 -0
  80. data/lib/fontist/macos/catalog/asset.rb +0 -2
  81. data/lib/fontist/macos/catalog/base_parser.rb +0 -1
  82. data/lib/fontist/macos/catalog/catalog_manager.rb +0 -6
  83. data/lib/fontist/macos/catalog/font3_parser.rb +0 -2
  84. data/lib/fontist/macos/catalog/font4_parser.rb +0 -2
  85. data/lib/fontist/macos/catalog/font5_parser.rb +0 -2
  86. data/lib/fontist/macos/catalog/font6_parser.rb +0 -2
  87. data/lib/fontist/macos/catalog/font7_parser.rb +0 -2
  88. data/lib/fontist/macos/catalog/font8_parser.rb +0 -2
  89. data/lib/fontist/macos/catalog.rb +15 -0
  90. data/lib/fontist/macos.rb +5 -0
  91. data/lib/fontist/macos_import_source.rb +0 -2
  92. data/lib/fontist/manifest_request.rb +0 -1
  93. data/lib/fontist/manifest_response.rb +0 -1
  94. data/lib/fontist/resources.rb +7 -0
  95. data/lib/fontist/sil_import_source.rb +0 -2
  96. data/lib/fontist/system_font.rb +0 -2
  97. data/lib/fontist/system_index.rb +0 -4
  98. data/lib/fontist/utils/cache.rb +0 -2
  99. data/lib/fontist/utils/downloader.rb +0 -4
  100. data/lib/fontist/utils.rb +10 -8
  101. data/lib/fontist/validate_cli.rb +0 -4
  102. data/lib/fontist/validator.rb +0 -2
  103. data/lib/fontist/version.rb +1 -1
  104. data/lib/fontist.rb +82 -36
  105. metadata +19 -16
@@ -1,7 +1,4 @@
1
1
  require "unibuf"
2
- require_relative "../metadata_adapter"
3
- require_relative "../../otf/font_file"
4
- require_relative "../models/font_family"
5
2
  require "pathname"
6
3
 
7
4
  module Fontist
@@ -1,5 +1,3 @@
1
- require_relative "base"
2
-
3
1
  module Fontist
4
2
  module Import
5
3
  module Google
@@ -1,5 +1,3 @@
1
- require_relative "base"
2
-
3
1
  module Fontist
4
2
  module Import
5
3
  module Google
@@ -1,5 +1,3 @@
1
- require_relative "base"
2
-
3
1
  module Fontist
4
2
  module Import
5
3
  module Google
@@ -0,0 +1,13 @@
1
+ module Fontist
2
+ module Import
3
+ module Google
4
+ module DataSources
5
+ autoload :Base, "#{__dir__}/data_sources/base"
6
+ autoload :Github, "#{__dir__}/data_sources/github"
7
+ autoload :Ttf, "#{__dir__}/data_sources/ttf"
8
+ autoload :Vf, "#{__dir__}/data_sources/vf"
9
+ autoload :Woff2, "#{__dir__}/data_sources/woff2"
10
+ end
11
+ end
12
+ end
13
+ end
@@ -1,12 +1,3 @@
1
- require_relative "models/font_family"
2
- require_relative "models/axis"
3
- require_relative "data_sources/ttf"
4
- require_relative "data_sources/vf"
5
- require_relative "data_sources/woff2"
6
- require_relative "data_sources/github"
7
- require_relative "../font_metadata_extractor"
8
- require_relative "../../utils/downloader"
9
- require_relative "../../google_import_source"
10
1
  require "yaml"
11
2
  require "fileutils"
12
3
 
@@ -404,7 +395,6 @@ github_data: nil, version: 4, source_path: nil)
404
395
  path = File.join(output_dir, filename)
405
396
 
406
397
  # Use HashHelper to convert keys to strings (preserves import_source object)
407
- require_relative "../helpers/hash_helper"
408
398
  formula_with_string_keys = Helpers::HashHelper.stringify_keys(formula_hash)
409
399
 
410
400
  File.write(path, YAML.dump(formula_with_string_keys))
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "unibuf"
4
- require_relative "models/metadata"
5
4
 
6
5
  module Fontist
7
6
  module Import
@@ -1,5 +1,4 @@
1
1
  require "lutaml/model"
2
- require_relative "axis"
3
2
 
4
3
  module Fontist
5
4
  module Import
@@ -1,9 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "lutaml/model"
4
- require_relative "font_file_metadata"
5
- require_relative "axis_metadata"
6
- require_relative "source_metadata"
4
+ require "unibuf"
7
5
 
8
6
  module Fontist
9
7
  module Import
@@ -74,9 +72,6 @@ module Fontist
74
72
  # @return [Metadata] parsed metadata object
75
73
  # @raise [ParseError] if file cannot be parsed
76
74
  def self.from_file(file_path)
77
- require "unibuf"
78
- require_relative "../metadata_adapter"
79
-
80
75
  unibuf_message = Unibuf.parse_textproto_file(file_path)
81
76
  MetadataAdapter.adapt(unibuf_message)
82
77
  end
@@ -87,9 +82,6 @@ module Fontist
87
82
  # @return [Metadata] parsed metadata object
88
83
  # @raise [ParseError] if content cannot be parsed
89
84
  def self.from_content(content)
90
- require "unibuf"
91
- require_relative "../metadata_adapter"
92
-
93
85
  unibuf_message = Unibuf.parse_textproto(content)
94
86
  MetadataAdapter.adapt(unibuf_message)
95
87
  end
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "lutaml/model"
4
- require_relative "file_metadata"
5
4
 
6
5
  module Fontist
7
6
  module Import
@@ -0,0 +1,16 @@
1
+ module Fontist
2
+ module Import
3
+ module Google
4
+ module Models
5
+ autoload :Axis, "#{__dir__}/models/axis"
6
+ autoload :AxisMetadata, "#{__dir__}/models/axis_metadata"
7
+ autoload :FileMetadata, "#{__dir__}/models/file_metadata"
8
+ autoload :FontFamily, "#{__dir__}/models/font_family"
9
+ autoload :FontFileMetadata, "#{__dir__}/models/font_file_metadata"
10
+ autoload :FontVariant, "#{__dir__}/models/font_variant"
11
+ autoload :Metadata, "#{__dir__}/models/metadata"
12
+ autoload :SourceMetadata, "#{__dir__}/models/source_metadata"
13
+ end
14
+ end
15
+ end
16
+ end
@@ -1,6 +1,13 @@
1
1
  module Fontist
2
2
  module Import
3
3
  module Google
4
+ autoload :Api, "#{__dir__}/google/api"
5
+ autoload :DataSources, "#{__dir__}/google/data_sources"
6
+ autoload :FontDatabase, "#{__dir__}/google/font_database"
7
+ autoload :MetadataAdapter, "#{__dir__}/google/metadata_adapter"
8
+ autoload :MetadataParser, "#{__dir__}/google/metadata_parser"
9
+ autoload :Models, "#{__dir__}/google/models"
10
+
4
11
  DEFAULT_MAX_COUNT = 100
5
12
 
6
13
  def self.metadata_name(path)
@@ -35,5 +42,3 @@ module Fontist
35
42
  end
36
43
  end
37
44
  end
38
-
39
- require_relative "google/api"
@@ -1,11 +1,6 @@
1
1
  require "fileutils"
2
2
  require "yaml"
3
3
  require "paint"
4
- require_relative "../import"
5
- require_relative "../formula"
6
- require_relative "google/font_database"
7
- require_relative "google/api"
8
- require_relative "import_display"
9
4
 
10
5
  module Fontist
11
6
  module Import
@@ -5,10 +5,6 @@
5
5
  # @deprecated Use {Fontist::Import::GoogleImporter} instead
6
6
  # @see Fontist::Import::GoogleImporter
7
7
 
8
- require_relative "google"
9
- require_relative "google/api"
10
- require_relative "google/create_google_formula"
11
-
12
8
  module Fontist
13
9
  module Import
14
10
  # Legacy Google Fonts import class
@@ -57,10 +53,7 @@ module Fontist
57
53
  # @return [Boolean] true if new importer is available and should be used
58
54
  def use_new_importer?
59
55
  # Check if new importer is available
60
- require_relative "google_importer"
61
- true
62
- rescue LoadError
63
- false
56
+ defined?(Fontist::Import::GoogleImporter)
64
57
  end
65
58
 
66
59
  # Delegates to new GoogleImporter
@@ -0,0 +1,8 @@
1
+ module Fontist
2
+ module Import
3
+ module Helpers
4
+ autoload :HashHelper, "#{__dir__}/helpers/hash_helper"
5
+ autoload :SystemHelper, "#{__dir__}/helpers/system_helper"
6
+ end
7
+ end
8
+ end
@@ -1,12 +1,6 @@
1
1
  require "plist"
2
2
  require "nokogiri"
3
3
  require "paint"
4
- require_relative "create_formula"
5
- require_relative "recursive_extraction"
6
- require_relative "../macos/catalog/catalog_manager"
7
- require_relative "../macos_import_source"
8
- require_relative "../google_import_source"
9
- require_relative "../sil_import_source"
10
4
 
11
5
  module Fontist
12
6
  module Import
@@ -1,5 +1,3 @@
1
- require_relative "formula_builder"
2
-
3
1
  module Fontist
4
2
  module Import
5
3
  class ManualFormulaBuilder < FormulaBuilder
@@ -0,0 +1,7 @@
1
+ module Fontist
2
+ module Import
3
+ module Models
4
+ autoload :FontMetadata, "#{__dir__}/models/font_metadata"
5
+ end
6
+ end
7
+ end
@@ -1,5 +1,3 @@
1
- require_relative "../font_metadata_extractor"
2
-
3
1
  module Fontist
4
2
  module Import
5
3
  module Otf
@@ -0,0 +1,7 @@
1
+ module Fontist
2
+ module Import
3
+ module Otf
4
+ autoload :FontFile, "#{__dir__}/otf/font_file"
5
+ end
6
+ end
7
+ end
@@ -1,8 +1,3 @@
1
- require_relative "otf/font_file"
2
- require_relative "files/collection_file"
3
- require_relative "files/font_detector"
4
- require_relative "font_parsing_error_collector"
5
-
6
1
  module Fontist
7
2
  module Import
8
3
  class RecursiveExtraction
@@ -1,7 +1,4 @@
1
1
  require "nokogiri"
2
- require "fontist/import/create_formula"
3
- require_relative "../sil_import_source"
4
- require_relative "import_display"
5
2
  require "paint"
6
3
 
7
4
  module Fontist
@@ -2,7 +2,7 @@ require "fileutils"
2
2
  require "yaml"
3
3
  require "tmpdir"
4
4
  require "find"
5
- require_relative "../formula"
5
+ require "rubygems/package"
6
6
 
7
7
  module Fontist
8
8
  module Import
@@ -251,9 +251,6 @@ module Fontist
251
251
  # @param url [String] the URL to download
252
252
  # @return [String, nil] path to downloaded file or nil
253
253
  def download_resource(url)
254
- # Lazy load downloader to avoid dependency issues
255
- require_relative "../utils/downloader" unless defined?(Fontist::Utils::Downloader)
256
-
257
254
  Fontist::Utils::Downloader.download(url)
258
255
  rescue StandardError => e
259
256
  log " Warning: Download failed for #{url}: #{e.message}"
@@ -299,9 +296,6 @@ module Fontist
299
296
 
300
297
  # Try to parse with Otf::FontFile
301
298
  begin
302
- # Lazy load Otf::FontFile to avoid dependency issues
303
- require_relative "otf/font_file" unless defined?(Fontist::Import::Otf::FontFile)
304
-
305
299
  Otf::FontFile.new(path)
306
300
  # If it parses, it's likely a font file
307
301
  # Guess ttf if we can't determine
@@ -392,7 +386,6 @@ module Fontist
392
386
  # @param extract_dir [String] directory to extract to
393
387
  # @return [void]
394
388
  def extract_tar_gz(archive_path, extract_dir)
395
- require "rubygems/package"
396
389
  require "zlib"
397
390
 
398
391
  File.open(archive_path, "rb") do |file|
@@ -410,7 +403,6 @@ module Fontist
410
403
  # @param extract_dir [String] directory to extract to
411
404
  # @return [void]
412
405
  def extract_tar_bz2(archive_path, extract_dir)
413
- require "rubygems/package"
414
406
  require "bzip2/ffi"
415
407
 
416
408
  File.open(archive_path, "rb") do |file|
@@ -428,8 +420,6 @@ module Fontist
428
420
  # @param extract_dir [String] directory to extract to
429
421
  # @return [void]
430
422
  def extract_tar(archive_path, extract_dir)
431
- require "rubygems/package"
432
-
433
423
  File.open(archive_path, "rb") do |file|
434
424
  Gem::Package::TarReader.new(file) do |tar|
435
425
  extract_tar_entries(tar, extract_dir)
@@ -1,5 +1,28 @@
1
1
  module Fontist
2
2
  module Import
3
+ autoload :ConvertFormulas, "#{__dir__}/import/convert_formulas"
4
+ autoload :CreateFormula, "#{__dir__}/import/create_formula"
5
+ autoload :Files, "#{__dir__}/import/files"
6
+ autoload :FontMetadataExtractor, "#{__dir__}/import/font_metadata_extractor"
7
+ autoload :FontParsingErrorCollector, "#{__dir__}/import/font_parsing_error_collector"
8
+ autoload :FontStyle, "#{__dir__}/import/font_style"
9
+ autoload :FormulaBuilder, "#{__dir__}/import/formula_builder"
10
+ autoload :FormulaSerializer, "#{__dir__}/import/formula_serializer"
11
+ autoload :Google, "#{__dir__}/import/google"
12
+ autoload :GoogleFontsImporter, "#{__dir__}/import/google_fonts_importer"
13
+ autoload :GoogleImport, "#{__dir__}/import/google_import"
14
+ autoload :Helpers, "#{__dir__}/import/helpers"
15
+ autoload :ImportDisplay, "#{__dir__}/import/import_display"
16
+ autoload :Macos, "#{__dir__}/import/macos"
17
+ autoload :ManualFormulaBuilder, "#{__dir__}/import/manual_formula_builder"
18
+ autoload :Models, "#{__dir__}/import/models"
19
+ autoload :Otf, "#{__dir__}/import/otf"
20
+ autoload :RecursiveExtraction, "#{__dir__}/import/recursive_extraction"
21
+ autoload :SilImport, "#{__dir__}/import/sil_import"
22
+ autoload :TemplateHelper, "#{__dir__}/import/template_helper"
23
+ autoload :TextHelper, "#{__dir__}/import/text_helper"
24
+ autoload :UpgradeFormulas, "#{__dir__}/import/upgrade_formulas"
25
+
3
26
  class << self
4
27
  def name_to_filename(name)
5
28
  "#{name.downcase.gsub(' ', '_')}.yml"
@@ -1,5 +1,3 @@
1
- require_relative "import/google"
2
-
3
1
  module Fontist
4
2
  class ImportCLI < Thor
5
3
  include CLI::ClassOptions
@@ -27,8 +25,6 @@ module Fontist
27
25
  def google
28
26
  handle_class_options(options)
29
27
 
30
- require "fontist/import/google_fonts_importer"
31
-
32
28
  # Support both --font-name and --font-family (backward compatibility)
33
29
  font_name = options[:font_name] || options[:font_family]
34
30
 
@@ -85,7 +81,6 @@ module Fontist
85
81
 
86
82
  def macos
87
83
  handle_class_options(options)
88
- require_relative "import/macos"
89
84
 
90
85
  # Handle deprecated formulas_dir option
91
86
  output_dir = if options[:formulas_dir] && !options[:output_path]
@@ -136,8 +131,6 @@ module Fontist
136
131
  def sil
137
132
  handle_class_options(options)
138
133
 
139
- require "fontist/import/sil_import"
140
-
141
134
  importer = Fontist::Import::SilImport.new(
142
135
  output_path: options[:output_path],
143
136
  font_name: options[:font_name],
@@ -180,8 +173,6 @@ module Fontist
180
173
  end
181
174
 
182
175
  def detect_latest_catalog
183
- require_relative "macos/catalog/catalog_manager"
184
-
185
176
  catalogs = Fontist::Macos::Catalog::CatalogManager.available_catalogs
186
177
 
187
178
  if catalogs.empty?
data/lib/fontist/index.rb CHANGED
@@ -1,8 +1,4 @@
1
1
  require "lutaml/model"
2
- require_relative "indexes/filename_index"
3
- require_relative "indexes/font_index"
4
- require_relative "indexes/default_family_font_index"
5
- require_relative "indexes/preferred_family_font_index"
6
2
 
7
3
  module Fontist
8
4
  class IndexEntry < Lutaml::Model::Serializable
@@ -1,6 +1,4 @@
1
1
  require "thor"
2
- require_relative "../fontist"
3
- require_relative "cli/class_options"
4
2
 
5
3
  module Fontist
6
4
  class IndexCLI < Thor
@@ -1,5 +1,4 @@
1
1
  require "singleton"
2
- require_relative "../system_index"
3
2
 
4
3
  module Fontist
5
4
  module Indexes
@@ -1,6 +1,4 @@
1
1
  require "lutaml/model"
2
- require_relative "index_mixin"
3
- require_relative "formula_key_to_path"
4
2
 
5
3
  module Fontist
6
4
  module Indexes
@@ -1,5 +1,3 @@
1
- require_relative "incremental_scanner"
2
-
3
1
  module Fontist
4
2
  module Indexes
5
3
  # Value object representing the state of a directory at a point in time
@@ -1,6 +1,4 @@
1
1
  require "lutaml/model"
2
- require_relative "index_mixin"
3
- require_relative "formula_key_to_path"
4
2
 
5
3
  module Fontist
6
4
  module Indexes
@@ -1,6 +1,3 @@
1
- require_relative "default_family_font_index"
2
- require_relative "preferred_family_font_index"
3
-
4
1
  module Fontist
5
2
  module Indexes
6
3
  class FontIndex
@@ -1,5 +1,3 @@
1
- require_relative "base_font_collection_index"
2
-
3
1
  module Fontist
4
2
  module Indexes
5
3
  # Index for fonts installed in the fontist library
@@ -1,7 +1,3 @@
1
- require_relative "directory_snapshot"
2
- require_relative "directory_change"
3
- require_relative "incremental_scanner"
4
-
5
1
  module Fontist
6
2
  module Indexes
7
3
  # Service for performing incremental index updates
@@ -1,6 +1,4 @@
1
1
  require "lutaml/model"
2
- require_relative "index_mixin"
3
- require_relative "formula_key_to_path"
4
2
 
5
3
  module Fontist
6
4
  module Indexes
@@ -1,5 +1,3 @@
1
- require_relative "base_font_collection_index"
2
-
3
1
  module Fontist
4
2
  module Indexes
5
3
  # Index for fonts in system font directories
@@ -1,5 +1,3 @@
1
- require_relative "base_font_collection_index"
2
-
3
1
  module Fontist
4
2
  module Indexes
5
3
  # Index for fonts installed in the user font directory
@@ -0,0 +1,18 @@
1
+ module Fontist
2
+ module Indexes
3
+ autoload :BaseFontCollectionIndex, "#{__dir__}/indexes/base_font_collection_index"
4
+ autoload :DefaultFamilyFontIndex, "#{__dir__}/indexes/default_family_font_index"
5
+ autoload :DirectoryChange, "#{__dir__}/indexes/directory_change"
6
+ autoload :DirectorySnapshot, "#{__dir__}/indexes/directory_snapshot"
7
+ autoload :FilenameIndex, "#{__dir__}/indexes/filename_index"
8
+ autoload :FontIndex, "#{__dir__}/indexes/font_index"
9
+ autoload :FontistIndex, "#{__dir__}/indexes/fontist_index"
10
+ autoload :FormulaKeyToPath, "#{__dir__}/indexes/formula_key_to_path"
11
+ autoload :IncrementalIndexUpdater, "#{__dir__}/indexes/incremental_index_updater"
12
+ autoload :IncrementalScanner, "#{__dir__}/indexes/incremental_scanner"
13
+ autoload :IndexMixin, "#{__dir__}/indexes/index_mixin"
14
+ autoload :PreferredFamilyFontIndex, "#{__dir__}/indexes/preferred_family_font_index"
15
+ autoload :SystemIndex, "#{__dir__}/indexes/system_index"
16
+ autoload :UserIndex, "#{__dir__}/indexes/user_index"
17
+ end
18
+ end
@@ -1,8 +1,4 @@
1
1
  require "pathname"
2
- require_relative "install_locations/base_location"
3
- require_relative "install_locations/fontist_location"
4
- require_relative "install_locations/user_location"
5
- require_relative "install_locations/system_location"
6
2
 
7
3
  module Fontist
8
4
  # Factory for creating font installation location objects
@@ -1,5 +1,3 @@
1
- require_relative "base_location"
2
-
3
1
  module Fontist
4
2
  module InstallLocations
5
3
  # Fontist library location (default installation location)
@@ -1,5 +1,3 @@
1
- require_relative "base_location"
2
-
3
1
  module Fontist
4
2
  module InstallLocations
5
3
  # System font directory location
@@ -1,5 +1,3 @@
1
- require_relative "base_location"
2
-
3
1
  module Fontist
4
2
  module InstallLocations
5
3
  # User font directory location
@@ -0,0 +1,8 @@
1
+ module Fontist
2
+ module InstallLocations
3
+ autoload :BaseLocation, "#{__dir__}/install_locations/base_location"
4
+ autoload :FontistLocation, "#{__dir__}/install_locations/fontist_location"
5
+ autoload :SystemLocation, "#{__dir__}/install_locations/system_location"
6
+ autoload :UserLocation, "#{__dir__}/install_locations/user_location"
7
+ end
8
+ end
@@ -1,5 +1,3 @@
1
- require_relative "../../macos_import_source"
2
-
3
1
  module Fontist
4
2
  module Macos
5
3
  module Catalog
@@ -1,5 +1,4 @@
1
1
  require "plist"
2
- require_relative "asset"
3
2
 
4
3
  module Fontist
5
4
  module Macos
@@ -1,9 +1,3 @@
1
- require_relative "font3_parser"
2
- require_relative "font4_parser"
3
- require_relative "font5_parser"
4
- require_relative "font6_parser"
5
- require_relative "font7_parser"
6
- require_relative "font8_parser"
7
1
  require "open-uri"
8
2
  require "uri"
9
3
 
@@ -1,5 +1,3 @@
1
- require_relative "base_parser"
2
-
3
1
  module Fontist
4
2
  module Macos
5
3
  module Catalog
@@ -1,5 +1,3 @@
1
- require_relative "base_parser"
2
-
3
1
  module Fontist
4
2
  module Macos
5
3
  module Catalog
@@ -1,5 +1,3 @@
1
- require_relative "base_parser"
2
-
3
1
  module Fontist
4
2
  module Macos
5
3
  module Catalog
@@ -1,5 +1,3 @@
1
- require_relative "base_parser"
2
-
3
1
  module Fontist
4
2
  module Macos
5
3
  module Catalog
@@ -1,5 +1,3 @@
1
- require_relative "base_parser"
2
-
3
1
  module Fontist
4
2
  module Macos
5
3
  module Catalog
@@ -1,5 +1,3 @@
1
- require_relative "base_parser"
2
-
3
1
  module Fontist
4
2
  module Macos
5
3
  module Catalog
@@ -0,0 +1,15 @@
1
+ module Fontist
2
+ module Macos
3
+ module Catalog
4
+ autoload :Asset, "#{__dir__}/catalog/asset"
5
+ autoload :BaseParser, "#{__dir__}/catalog/base_parser"
6
+ autoload :CatalogManager, "#{__dir__}/catalog/catalog_manager"
7
+ autoload :Font3Parser, "#{__dir__}/catalog/font3_parser"
8
+ autoload :Font4Parser, "#{__dir__}/catalog/font4_parser"
9
+ autoload :Font5Parser, "#{__dir__}/catalog/font5_parser"
10
+ autoload :Font6Parser, "#{__dir__}/catalog/font6_parser"
11
+ autoload :Font7Parser, "#{__dir__}/catalog/font7_parser"
12
+ autoload :Font8Parser, "#{__dir__}/catalog/font8_parser"
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,5 @@
1
+ module Fontist
2
+ module Macos
3
+ autoload :Catalog, "#{__dir__}/macos/catalog"
4
+ end
5
+ end
@@ -1,5 +1,3 @@
1
- require_relative "import_source"
2
- require_relative "macos_framework_metadata"
3
1
 
4
2
  module Fontist
5
3
  # Import source for macOS supplementary fonts