fontist 1.2.1 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/check_google.yml +28 -0
- data/.github/workflows/macosx.yml +3 -0
- data/.github/workflows/ubuntu.yml +1 -1
- data/.github/workflows/windows.yml +1 -1
- data/.gitignore +6 -0
- data/.hound.yml +2 -0
- data/.rubocop.yml +22 -0
- data/README.md +224 -0
- data/bin/check_google +8 -0
- data/bin/convert_formulas +8 -0
- data/bin/fontist +7 -0
- data/bin/generate_otfinfo +8 -0
- data/bin/import_google +8 -0
- data/fontist.gemspec +16 -1
- data/lib/fontist.rb +23 -13
- data/lib/fontist/cli.rb +162 -0
- data/lib/fontist/errors.rb +5 -0
- data/lib/fontist/font.rb +181 -8
- data/lib/fontist/font_formula.rb +12 -5
- data/lib/fontist/fontist_font.rb +70 -0
- data/lib/fontist/formula.rb +27 -9
- data/lib/fontist/formula_template.rb +108 -0
- data/lib/fontist/formulas.rb +41 -0
- data/lib/fontist/import.rb +9 -0
- data/lib/fontist/import/convert_formulas.rb +65 -0
- data/lib/fontist/import/create_formula.rb +74 -0
- data/lib/fontist/import/extractors.rb +5 -0
- data/lib/fontist/import/extractors/cab_extractor.rb +37 -0
- data/lib/fontist/import/extractors/extractor.rb +19 -0
- data/lib/fontist/import/extractors/ole_extractor.rb +41 -0
- data/lib/fontist/import/extractors/seven_zip_extractor.rb +44 -0
- data/lib/fontist/import/extractors/zip_extractor.rb +31 -0
- data/lib/fontist/import/files/collection_file.rb +47 -0
- data/lib/fontist/import/formula_builder.rb +162 -0
- data/lib/fontist/import/formula_serializer.rb +133 -0
- data/lib/fontist/import/google.rb +16 -0
- data/lib/fontist/import/google/fonts_public.md +10 -0
- data/lib/fontist/import/google/fonts_public.pb.rb +71 -0
- data/lib/fontist/import/google/fonts_public.proto +46 -0
- data/lib/fontist/import/google/new_fonts_fetcher.rb +121 -0
- data/lib/fontist/import/google/skiplist.yml +8 -0
- data/lib/fontist/import/google_check.rb +34 -0
- data/lib/fontist/import/google_import.rb +180 -0
- data/lib/fontist/import/helpers/hash_helper.rb +13 -0
- data/lib/fontist/import/helpers/system_helper.rb +23 -0
- data/lib/fontist/import/otf/font_file.rb +91 -0
- data/lib/fontist/import/otf_parser.rb +25 -0
- data/lib/fontist/import/otf_style.rb +29 -0
- data/lib/fontist/import/otfinfo/otfinfo_requirement.rb +22 -0
- data/lib/fontist/import/otfinfo/template.erb +20 -0
- data/lib/fontist/import/otfinfo_generate.rb +45 -0
- data/lib/fontist/import/recursive_extraction.rb +128 -0
- data/lib/fontist/import/template_helper.rb +19 -0
- data/lib/fontist/import/text_helper.rb +30 -0
- data/lib/fontist/manifest.rb +2 -0
- data/lib/fontist/manifest/common.rb +60 -0
- data/lib/fontist/manifest/install.rb +36 -0
- data/lib/fontist/manifest/locations.rb +13 -0
- data/lib/fontist/registry.rb +1 -0
- data/lib/fontist/system_font.rb +53 -22
- data/lib/fontist/utils.rb +5 -0
- data/lib/fontist/utils/cache.rb +88 -0
- data/lib/fontist/utils/downloader.rb +69 -8
- data/lib/fontist/utils/dsl.rb +4 -0
- data/lib/fontist/utils/dsl/font.rb +37 -0
- data/lib/fontist/utils/exe_extractor.rb +20 -18
- data/lib/fontist/utils/msi_extractor.rb +31 -0
- data/lib/fontist/utils/seven_zip_extractor.rb +41 -0
- data/lib/fontist/utils/system.rb +23 -0
- data/lib/fontist/utils/ui.rb +27 -0
- data/lib/fontist/utils/zip_extractor.rb +10 -4
- data/lib/fontist/version.rb +1 -1
- metadata +185 -48
- data/lib/fontist/formulas/andale_font.rb +0 -80
- data/lib/fontist/formulas/arial_black_font.rb +0 -79
- data/lib/fontist/formulas/cleartype_fonts.rb +0 -227
- data/lib/fontist/formulas/comic_font.rb +0 -78
- data/lib/fontist/formulas/courier_font.rb +0 -81
- data/lib/fontist/formulas/euphemia_font.rb +0 -85
- data/lib/fontist/formulas/georgia_font.rb +0 -80
- data/lib/fontist/formulas/impact_font.rb +0 -78
- data/lib/fontist/formulas/montserrat_font.rb +0 -132
- data/lib/fontist/formulas/ms_truetype_fonts.rb +0 -125
- data/lib/fontist/formulas/open_sans_fonts.rb +0 -263
- data/lib/fontist/formulas/overpass_font.rb +0 -73
- data/lib/fontist/formulas/source_fonts.rb +0 -109
- data/lib/fontist/formulas/stix_fonts.rb +0 -108
- data/lib/fontist/formulas/tahoma_font.rb +0 -147
- data/lib/fontist/formulas/webding_font.rb +0 -78
- data/spec/fontist/font_formula_spec.rb +0 -67
- data/spec/fontist/font_spec.rb +0 -87
- data/spec/fontist/formula_spec.rb +0 -67
- data/spec/fontist/formulas/andale_font_spec.rb +0 -29
- data/spec/fontist/formulas/arial_black_font_spec.rb +0 -29
- data/spec/fontist/formulas/cleartype_fonts_spec.rb +0 -38
- data/spec/fontist/formulas/comic_font_spec.rb +0 -29
- data/spec/fontist/formulas/courier_font_spec.rb +0 -29
- data/spec/fontist/formulas/euphemia_font_spec.rb +0 -29
- data/spec/fontist/formulas/georgia_font_spec.rb +0 -29
- data/spec/fontist/formulas/impact_font_spec.rb +0 -29
- data/spec/fontist/formulas/montserrat_font_spec.rb +0 -29
- data/spec/fontist/formulas/ms_truetype_fonts_spec.rb +0 -29
- data/spec/fontist/formulas/open_sans_fonts_spec.rb +0 -29
- data/spec/fontist/formulas/overpass_font_spec.rb +0 -29
- data/spec/fontist/formulas/source_fonts_spec.rb +0 -31
- data/spec/fontist/formulas/stix_fonts_spec.rb +0 -29
- data/spec/fontist/formulas/tahoma_font_spec.rb +0 -29
- data/spec/fontist/formulas/webding_font_spec.rb +0 -29
- data/spec/fontist/registry_spec.rb +0 -47
- data/spec/fontist/system_font_spec.rb +0 -44
- data/spec/fontist/utils/downloader_spec.rb +0 -35
- data/spec/fontist_spec.rb +0 -5
- data/spec/spec_helper.rb +0 -22
- data/spec/support/fontist_helper.rb +0 -10
data/lib/fontist/utils/dsl.rb
CHANGED
@@ -0,0 +1,37 @@
|
|
1
|
+
module Fontist
|
2
|
+
module Utils
|
3
|
+
module Dsl
|
4
|
+
class Font
|
5
|
+
REQUIRED_ATTRIBUTES = %i[family_name
|
6
|
+
style
|
7
|
+
full_name
|
8
|
+
filename].freeze
|
9
|
+
|
10
|
+
attr_reader :attributes
|
11
|
+
|
12
|
+
def initialize(attributes)
|
13
|
+
REQUIRED_ATTRIBUTES.each do |required_attribute|
|
14
|
+
unless attributes[required_attribute]
|
15
|
+
raise(Fontist::Errors::MissingAttributeError.new(
|
16
|
+
"Missing attribute: #{required_attribute}"
|
17
|
+
))
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
self.attributes = attributes
|
22
|
+
end
|
23
|
+
|
24
|
+
def attributes=(attrs)
|
25
|
+
@attributes = { family_name: attrs[:family_name],
|
26
|
+
type: attrs[:style],
|
27
|
+
full_name: attrs[:full_name],
|
28
|
+
post_script_name: attrs[:post_script_name],
|
29
|
+
version: attrs[:version],
|
30
|
+
description: attrs[:description],
|
31
|
+
copyright: attrs[:copyright],
|
32
|
+
font: attrs[:filename] }
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -1,20 +1,23 @@
|
|
1
1
|
module Fontist
|
2
2
|
module Utils
|
3
3
|
module ExeExtractor
|
4
|
-
def cab_extract(exe_file, download: true,
|
4
|
+
def cab_extract(exe_file, download: true, font_ext: /.ttf|.otf|.ttc/i)
|
5
5
|
download = @downloaded === true ? false : download
|
6
6
|
|
7
7
|
exe_file = download_file(exe_file).path if download
|
8
|
+
|
9
|
+
Fontist.ui.say(%(Installing font "#{key}".))
|
8
10
|
cab_file = decompressor.search(exe_file)
|
9
11
|
cabbed_fonts = grep_fonts(cab_file.files, font_ext) || []
|
10
12
|
fonts_paths = extract_cabbed_fonts_to_assets(cabbed_fonts)
|
11
13
|
|
12
|
-
yield(fonts_paths)
|
14
|
+
block_given? ? yield(fonts_paths) : fonts_paths
|
13
15
|
end
|
14
16
|
|
15
|
-
def exe_extract(source)
|
17
|
+
def exe_extract(source, subarchive: nil)
|
16
18
|
cab_file = decompressor.search(download_file(source).path)
|
17
|
-
|
19
|
+
subarchive_path = extract_subarchive(cab_file.files, subarchive)
|
20
|
+
block_given? ? yield(subarchive_path) : subarchive_path
|
18
21
|
end
|
19
22
|
|
20
23
|
private
|
@@ -46,26 +49,25 @@ module Fontist
|
|
46
49
|
end
|
47
50
|
end
|
48
51
|
|
49
|
-
def
|
50
|
-
|
51
|
-
|
52
|
-
filename = file.filename
|
53
|
-
if filename.include?("cab")
|
54
|
-
file_path = temp_dir.join(filename).to_s
|
52
|
+
def extract_subarchive(file, subarchive = nil)
|
53
|
+
while file
|
54
|
+
filename = file.filename
|
55
55
|
|
56
|
-
|
57
|
-
|
58
|
-
|
56
|
+
if subarchive_found?(filename, subarchive)
|
57
|
+
file_path = File.join(Dir.mktmpdir, filename)
|
58
|
+
decompressor.extract(file, file_path)
|
59
59
|
|
60
|
-
|
60
|
+
return file_path
|
61
61
|
end
|
62
|
+
|
63
|
+
file = file.next
|
62
64
|
end
|
63
65
|
end
|
64
66
|
|
65
|
-
def
|
66
|
-
|
67
|
-
|
68
|
-
)
|
67
|
+
def subarchive_found?(filename, subarchive)
|
68
|
+
return subarchive == filename if subarchive
|
69
|
+
|
70
|
+
filename.include?("cab") || filename.include?("msi")
|
69
71
|
end
|
70
72
|
end
|
71
73
|
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module Fontist
|
2
|
+
module Utils
|
3
|
+
module MsiExtractor
|
4
|
+
def msi_extract(resource)
|
5
|
+
file = @downloaded ? resource : download_file(resource)
|
6
|
+
|
7
|
+
cab_content = read_the_largest_file(file)
|
8
|
+
|
9
|
+
cab_file = Tempfile.new(["data", ".cab"], mode: File::BINARY)
|
10
|
+
cab_file.write(cab_content)
|
11
|
+
|
12
|
+
block_given? ? yield(cab_file.path) : cab_file.path
|
13
|
+
end
|
14
|
+
|
15
|
+
private
|
16
|
+
|
17
|
+
def read_the_largest_file(file)
|
18
|
+
ole = storage.open(file)
|
19
|
+
the_largest_file = ole.dir.entries(".").max_by { |x| ole.file.size(x) }
|
20
|
+
ole.file.read(the_largest_file)
|
21
|
+
end
|
22
|
+
|
23
|
+
def storage
|
24
|
+
@storage ||= begin
|
25
|
+
require "ole/storage"
|
26
|
+
Ole::Storage
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
module Fontist
|
2
|
+
module Utils
|
3
|
+
module SevenZipExtractor
|
4
|
+
def seven_zip_extract(resource, extension: /\.cab$/)
|
5
|
+
file = download_file(resource)
|
6
|
+
|
7
|
+
extract_seven_zip_file(file, extension)
|
8
|
+
end
|
9
|
+
|
10
|
+
private
|
11
|
+
|
12
|
+
def extract_seven_zip_file(file, extension)
|
13
|
+
File.open(file, "rb") do |zip_file|
|
14
|
+
reader.open(zip_file) do |szr|
|
15
|
+
path = extract_by_extension(szr, extension)
|
16
|
+
|
17
|
+
return block_given? ? yield(path) : path
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def reader
|
23
|
+
@reader ||= begin
|
24
|
+
require "seven_zip_ruby"
|
25
|
+
SevenZipRuby::Reader
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
def extract_by_extension(szr, extension)
|
30
|
+
cab_entry = szr.entries.detect do |entry|
|
31
|
+
entry.file? && entry.path.match(extension)
|
32
|
+
end
|
33
|
+
|
34
|
+
tmp_dir = Dir.mktmpdir
|
35
|
+
szr.extract(cab_entry, tmp_dir)
|
36
|
+
filename = Pathname.new(cab_entry.path).basename
|
37
|
+
File.join(tmp_dir, filename)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Fontist
|
2
|
+
module Utils
|
3
|
+
module System
|
4
|
+
def self.user_os # rubocop:disable Metrics/MethodLength
|
5
|
+
@user_os ||= begin
|
6
|
+
host_os = RbConfig::CONFIG["host_os"]
|
7
|
+
case host_os
|
8
|
+
when /mswin|msys|mingw|cygwin|bccwin|wince|emc/
|
9
|
+
:windows
|
10
|
+
when /darwin|mac os/
|
11
|
+
:macos
|
12
|
+
when /linux/
|
13
|
+
:linux
|
14
|
+
when /solaris|bsd/
|
15
|
+
:unix
|
16
|
+
else
|
17
|
+
raise Fontist::Error, "unknown os: #{host_os.inspect}"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require "thor"
|
2
|
+
|
3
|
+
module Fontist
|
4
|
+
module Utils
|
5
|
+
class UI < Thor
|
6
|
+
def self.success(message)
|
7
|
+
new.say(message, :green)
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.error(message)
|
11
|
+
new.say(message, :red)
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.say(message)
|
15
|
+
new.say(message)
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.ask(message, options = {})
|
19
|
+
new.ask(message, options)
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.print(message)
|
23
|
+
super
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -4,24 +4,29 @@ require "pathname"
|
|
4
4
|
module Fontist
|
5
5
|
module Utils
|
6
6
|
module ZipExtractor
|
7
|
+
# fonts_sub_dir is unused now, but formulas have this option
|
8
|
+
# rubocop:disable Lint/UnusedMethodArgument
|
7
9
|
def zip_extract(resource, download: true, fonts_sub_dir: "")
|
8
10
|
zip_file = download_file(resource) if download
|
9
11
|
zip_file ||= resource.urls.first
|
10
12
|
|
11
|
-
|
13
|
+
Fontist.ui.say(%(Installing font "#{key}".))
|
14
|
+
fonts_paths = unzip_fonts(zip_file)
|
12
15
|
block_given? ? yield(fonts_paths) : fonts_paths
|
13
16
|
end
|
17
|
+
# rubocop:enable Lint/UnusedMethodArgument
|
14
18
|
|
15
19
|
alias_method :unzip, :zip_extract
|
16
20
|
|
17
21
|
private
|
18
22
|
|
19
|
-
|
23
|
+
# rubocop:disable Metrics/MethodLength, Metrics/AbcSize
|
24
|
+
def unzip_fonts(file)
|
20
25
|
Zip.on_exists_proc = true
|
21
|
-
Array.new.tap do |fonts|
|
22
26
|
|
27
|
+
Array.new.tap do |fonts|
|
23
28
|
Zip::File.open(file) do |zip_file|
|
24
|
-
zip_file.glob("
|
29
|
+
zip_file.glob("**/*.{ttf,ttc,otf}").each do |entry|
|
25
30
|
if entry.name
|
26
31
|
filename = Pathname.new(entry.name).basename
|
27
32
|
font_path = fonts_path.join(filename.to_s)
|
@@ -33,6 +38,7 @@ module Fontist
|
|
33
38
|
end
|
34
39
|
end
|
35
40
|
end
|
41
|
+
# rubocop:enable Metrics/MethodLength, Metrics/AbcSize
|
36
42
|
end
|
37
43
|
end
|
38
44
|
end
|
data/lib/fontist/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fontist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
- Abu Nashir
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-11-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: down
|
@@ -53,6 +53,76 @@ dependencies:
|
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: 2.3.0
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: seven_zip_ruby
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '1.0'
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '1.0'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: ruby-ole
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - "~>"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '1.0'
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '1.0'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: thor
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - "~>"
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: 1.0.1
|
91
|
+
type: :runtime
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - "~>"
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: 1.0.1
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: git
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - "~>"
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '1.0'
|
105
|
+
type: :runtime
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - "~>"
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '1.0'
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: extract_ttc
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - "~>"
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0.1'
|
119
|
+
type: :development
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - "~>"
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0.1'
|
56
126
|
- !ruby/object:Gem::Dependency
|
57
127
|
name: pry
|
58
128
|
requirement: !ruby/object:Gem::Requirement
|
@@ -109,84 +179,151 @@ dependencies:
|
|
109
179
|
- - "~>"
|
110
180
|
- !ruby/object:Gem::Version
|
111
181
|
version: '3.0'
|
182
|
+
- !ruby/object:Gem::Dependency
|
183
|
+
name: rubocop
|
184
|
+
requirement: !ruby/object:Gem::Requirement
|
185
|
+
requirements:
|
186
|
+
- - '='
|
187
|
+
- !ruby/object:Gem::Version
|
188
|
+
version: 0.75.0
|
189
|
+
type: :development
|
190
|
+
prerelease: false
|
191
|
+
version_requirements: !ruby/object:Gem::Requirement
|
192
|
+
requirements:
|
193
|
+
- - '='
|
194
|
+
- !ruby/object:Gem::Version
|
195
|
+
version: 0.75.0
|
196
|
+
- !ruby/object:Gem::Dependency
|
197
|
+
name: rubocop-rails
|
198
|
+
requirement: !ruby/object:Gem::Requirement
|
199
|
+
requirements:
|
200
|
+
- - ">="
|
201
|
+
- !ruby/object:Gem::Version
|
202
|
+
version: '0'
|
203
|
+
type: :development
|
204
|
+
prerelease: false
|
205
|
+
version_requirements: !ruby/object:Gem::Requirement
|
206
|
+
requirements:
|
207
|
+
- - ">="
|
208
|
+
- !ruby/object:Gem::Version
|
209
|
+
version: '0'
|
210
|
+
- !ruby/object:Gem::Dependency
|
211
|
+
name: rubocop-performance
|
212
|
+
requirement: !ruby/object:Gem::Requirement
|
213
|
+
requirements:
|
214
|
+
- - ">="
|
215
|
+
- !ruby/object:Gem::Version
|
216
|
+
version: '0'
|
217
|
+
type: :development
|
218
|
+
prerelease: false
|
219
|
+
version_requirements: !ruby/object:Gem::Requirement
|
220
|
+
requirements:
|
221
|
+
- - ">="
|
222
|
+
- !ruby/object:Gem::Version
|
223
|
+
version: '0'
|
224
|
+
- !ruby/object:Gem::Dependency
|
225
|
+
name: ruby-protocol-buffers
|
226
|
+
requirement: !ruby/object:Gem::Requirement
|
227
|
+
requirements:
|
228
|
+
- - "~>"
|
229
|
+
- !ruby/object:Gem::Version
|
230
|
+
version: '1.0'
|
231
|
+
type: :development
|
232
|
+
prerelease: false
|
233
|
+
version_requirements: !ruby/object:Gem::Requirement
|
234
|
+
requirements:
|
235
|
+
- - "~>"
|
236
|
+
- !ruby/object:Gem::Version
|
237
|
+
version: '1.0'
|
112
238
|
description: A libarary find or download fonts
|
113
239
|
email:
|
114
240
|
- operations@ribose.com
|
115
241
|
- abunashir@gmail.com
|
116
|
-
executables:
|
242
|
+
executables:
|
243
|
+
- fontist
|
117
244
|
extensions: []
|
118
245
|
extra_rdoc_files: []
|
119
246
|
files:
|
247
|
+
- ".github/workflows/check_google.yml"
|
120
248
|
- ".github/workflows/macosx.yml"
|
121
249
|
- ".github/workflows/ubuntu.yml"
|
122
250
|
- ".github/workflows/windows.yml"
|
123
251
|
- ".gitignore"
|
252
|
+
- ".hound.yml"
|
124
253
|
- ".rspec"
|
254
|
+
- ".rubocop.yml"
|
125
255
|
- Gemfile
|
126
256
|
- LICENSE.txt
|
127
257
|
- README.md
|
128
258
|
- Rakefile
|
259
|
+
- bin/check_google
|
129
260
|
- bin/console
|
261
|
+
- bin/convert_formulas
|
262
|
+
- bin/fontist
|
263
|
+
- bin/generate_otfinfo
|
264
|
+
- bin/import_google
|
130
265
|
- bin/rspec
|
131
266
|
- bin/setup
|
132
267
|
- fontist.gemspec
|
133
268
|
- lib/fontist.rb
|
269
|
+
- lib/fontist/cli.rb
|
134
270
|
- lib/fontist/errors.rb
|
135
271
|
- lib/fontist/font.rb
|
136
272
|
- lib/fontist/font_formula.rb
|
273
|
+
- lib/fontist/fontist_font.rb
|
137
274
|
- lib/fontist/formula.rb
|
275
|
+
- lib/fontist/formula_template.rb
|
138
276
|
- lib/fontist/formulas.rb
|
139
|
-
- lib/fontist/
|
140
|
-
- lib/fontist/
|
141
|
-
- lib/fontist/
|
142
|
-
- lib/fontist/
|
143
|
-
- lib/fontist/
|
144
|
-
- lib/fontist/
|
145
|
-
- lib/fontist/
|
146
|
-
- lib/fontist/
|
147
|
-
- lib/fontist/
|
148
|
-
- lib/fontist/
|
149
|
-
- lib/fontist/
|
150
|
-
- lib/fontist/
|
151
|
-
- lib/fontist/
|
152
|
-
- lib/fontist/
|
153
|
-
- lib/fontist/
|
154
|
-
- lib/fontist/
|
277
|
+
- lib/fontist/import.rb
|
278
|
+
- lib/fontist/import/convert_formulas.rb
|
279
|
+
- lib/fontist/import/create_formula.rb
|
280
|
+
- lib/fontist/import/extractors.rb
|
281
|
+
- lib/fontist/import/extractors/cab_extractor.rb
|
282
|
+
- lib/fontist/import/extractors/extractor.rb
|
283
|
+
- lib/fontist/import/extractors/ole_extractor.rb
|
284
|
+
- lib/fontist/import/extractors/seven_zip_extractor.rb
|
285
|
+
- lib/fontist/import/extractors/zip_extractor.rb
|
286
|
+
- lib/fontist/import/files/collection_file.rb
|
287
|
+
- lib/fontist/import/formula_builder.rb
|
288
|
+
- lib/fontist/import/formula_serializer.rb
|
289
|
+
- lib/fontist/import/google.rb
|
290
|
+
- lib/fontist/import/google/fonts_public.md
|
291
|
+
- lib/fontist/import/google/fonts_public.pb.rb
|
292
|
+
- lib/fontist/import/google/fonts_public.proto
|
293
|
+
- lib/fontist/import/google/new_fonts_fetcher.rb
|
294
|
+
- lib/fontist/import/google/skiplist.yml
|
295
|
+
- lib/fontist/import/google_check.rb
|
296
|
+
- lib/fontist/import/google_import.rb
|
297
|
+
- lib/fontist/import/helpers/hash_helper.rb
|
298
|
+
- lib/fontist/import/helpers/system_helper.rb
|
299
|
+
- lib/fontist/import/otf/font_file.rb
|
300
|
+
- lib/fontist/import/otf_parser.rb
|
301
|
+
- lib/fontist/import/otf_style.rb
|
302
|
+
- lib/fontist/import/otfinfo/otfinfo_requirement.rb
|
303
|
+
- lib/fontist/import/otfinfo/template.erb
|
304
|
+
- lib/fontist/import/otfinfo_generate.rb
|
305
|
+
- lib/fontist/import/recursive_extraction.rb
|
306
|
+
- lib/fontist/import/template_helper.rb
|
307
|
+
- lib/fontist/import/text_helper.rb
|
308
|
+
- lib/fontist/manifest.rb
|
309
|
+
- lib/fontist/manifest/common.rb
|
310
|
+
- lib/fontist/manifest/install.rb
|
311
|
+
- lib/fontist/manifest/locations.rb
|
155
312
|
- lib/fontist/registry.rb
|
156
313
|
- lib/fontist/system.yml
|
157
314
|
- lib/fontist/system_font.rb
|
158
315
|
- lib/fontist/utils.rb
|
316
|
+
- lib/fontist/utils/cache.rb
|
159
317
|
- lib/fontist/utils/downloader.rb
|
160
318
|
- lib/fontist/utils/dsl.rb
|
319
|
+
- lib/fontist/utils/dsl/font.rb
|
161
320
|
- lib/fontist/utils/exe_extractor.rb
|
321
|
+
- lib/fontist/utils/msi_extractor.rb
|
322
|
+
- lib/fontist/utils/seven_zip_extractor.rb
|
323
|
+
- lib/fontist/utils/system.rb
|
324
|
+
- lib/fontist/utils/ui.rb
|
162
325
|
- lib/fontist/utils/zip_extractor.rb
|
163
326
|
- lib/fontist/version.rb
|
164
|
-
- spec/fixtures/fonts/DejaVuSerif.ttf
|
165
|
-
- spec/fontist/font_formula_spec.rb
|
166
|
-
- spec/fontist/font_spec.rb
|
167
|
-
- spec/fontist/formula_spec.rb
|
168
|
-
- spec/fontist/formulas/andale_font_spec.rb
|
169
|
-
- spec/fontist/formulas/arial_black_font_spec.rb
|
170
|
-
- spec/fontist/formulas/cleartype_fonts_spec.rb
|
171
|
-
- spec/fontist/formulas/comic_font_spec.rb
|
172
|
-
- spec/fontist/formulas/courier_font_spec.rb
|
173
|
-
- spec/fontist/formulas/euphemia_font_spec.rb
|
174
|
-
- spec/fontist/formulas/georgia_font_spec.rb
|
175
|
-
- spec/fontist/formulas/impact_font_spec.rb
|
176
|
-
- spec/fontist/formulas/montserrat_font_spec.rb
|
177
|
-
- spec/fontist/formulas/ms_truetype_fonts_spec.rb
|
178
|
-
- spec/fontist/formulas/open_sans_fonts_spec.rb
|
179
|
-
- spec/fontist/formulas/overpass_font_spec.rb
|
180
|
-
- spec/fontist/formulas/source_fonts_spec.rb
|
181
|
-
- spec/fontist/formulas/stix_fonts_spec.rb
|
182
|
-
- spec/fontist/formulas/tahoma_font_spec.rb
|
183
|
-
- spec/fontist/formulas/webding_font_spec.rb
|
184
|
-
- spec/fontist/registry_spec.rb
|
185
|
-
- spec/fontist/system_font_spec.rb
|
186
|
-
- spec/fontist/utils/downloader_spec.rb
|
187
|
-
- spec/fontist_spec.rb
|
188
|
-
- spec/spec_helper.rb
|
189
|
-
- spec/support/fontist_helper.rb
|
190
327
|
homepage: https://github.com/fontist/fontist
|
191
328
|
licenses:
|
192
329
|
- BSD-2-Clause
|
@@ -194,7 +331,7 @@ metadata:
|
|
194
331
|
homepage_uri: https://github.com/fontist/fontist
|
195
332
|
source_code_uri: https://github.com/fontist/fontist
|
196
333
|
changelog_uri: https://github.com/fontist/fontist
|
197
|
-
post_install_message:
|
334
|
+
post_install_message: Please run `fontist update` to fetch formulas
|
198
335
|
rdoc_options: []
|
199
336
|
require_paths:
|
200
337
|
- lib
|
@@ -210,7 +347,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
210
347
|
version: '0'
|
211
348
|
requirements: []
|
212
349
|
rubygems_version: 3.0.3
|
213
|
-
signing_key:
|
350
|
+
signing_key:
|
214
351
|
specification_version: 4
|
215
352
|
summary: A libarary find or download fonts
|
216
353
|
test_files: []
|