fontina 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +3 -0
- data/LICENSE.txt +21 -0
- data/README.md +42 -0
- data/fontina.gemspec +29 -0
- data/lib/fontina/fetcher.rb +34 -0
- data/lib/fontina/fetchers/http.rb +43 -0
- data/lib/fontina/fetchers/local_file_path.rb +15 -0
- data/lib/fontina/fetchers/local_file_uri.rb +21 -0
- data/lib/fontina/fetchers/preprocessor.rb +18 -0
- data/lib/fontina/format.rb +39 -0
- data/lib/fontina/formats/fon/constants.rb +12 -0
- data/lib/fontina/formats/fon/container.rb +24 -0
- data/lib/fontina/formats/fon/dos_header.rb +14 -0
- data/lib/fontina/formats/fon/ne_exported_name_table.rb +24 -0
- data/lib/fontina/formats/fon/ne_font_dir.rb +50 -0
- data/lib/fontina/formats/fon/ne_header.rb +25 -0
- data/lib/fontina/formats/fon/ne_resource.rb +14 -0
- data/lib/fontina/formats/fon/ne_resource_name_info.rb +18 -0
- data/lib/fontina/formats/fon/ne_resource_table.rb +12 -0
- data/lib/fontina/formats/fon/ne_resource_type_info.rb +21 -0
- data/lib/fontina/formats/fon/ne_vs_version_info.rb +70 -0
- data/lib/fontina/formats/fon.rb +79 -0
- data/lib/fontina/formats/open_type/constants.rb +79 -0
- data/lib/fontina/formats/open_type/container.rb +10 -0
- data/lib/fontina/formats/open_type/head_table.rb +17 -0
- data/lib/fontina/formats/open_type/name_table.rb +34 -0
- data/lib/fontina/formats/open_type/offset_table.rb +15 -0
- data/lib/fontina/formats/open_type/os2_table.rb +14 -0
- data/lib/fontina/formats/open_type/table.rb +15 -0
- data/lib/fontina/formats/open_type/table_directory.rb +26 -0
- data/lib/fontina/formats/open_type.rb +77 -0
- data/lib/fontina/formats/shared/language_codes/mac.rb +125 -0
- data/lib/fontina/formats/shared/language_codes/windows.rb +211 -0
- data/lib/fontina/formats/shared/p_string.rb +16 -0
- data/lib/fontina/meta_package.rb +32 -0
- data/lib/fontina/package.rb +18 -0
- data/lib/fontina/version.rb +3 -0
- data/lib/fontina.rb +29 -0
- metadata +194 -0
data/lib/fontina.rb
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
%w[
|
2
|
+
bindata
|
3
|
+
faraday
|
4
|
+
faraday_middleware
|
5
|
+
mores
|
6
|
+
].each { |gem| require gem }
|
7
|
+
|
8
|
+
module Fontina
|
9
|
+
module Fetchers end
|
10
|
+
module Formats
|
11
|
+
module Shared end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
%w[
|
16
|
+
version
|
17
|
+
fetcher
|
18
|
+
format
|
19
|
+
package
|
20
|
+
meta_package
|
21
|
+
].each { |file| require "fontina/#{file}" }
|
22
|
+
|
23
|
+
module Fontina
|
24
|
+
|
25
|
+
def self.open(location)
|
26
|
+
MetaPackage.new location
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
metadata
ADDED
@@ -0,0 +1,194 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: fontina
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Michael Petter
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-01-21 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bindata
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.3.5
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.3.5
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: faraday
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "<"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "<"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: faraday_middleware
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.10.0
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.10.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: mores
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.1.5
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.1.5
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: bundler
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.7'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.7'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '10.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '10.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '3.4'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '3.4'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rspec-its
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '1.2'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '1.2'
|
125
|
+
description: |2
|
126
|
+
Fetches, parses, and describes font files.
|
127
|
+
email: michaeljpetter@gmail.com
|
128
|
+
executables: []
|
129
|
+
extensions: []
|
130
|
+
extra_rdoc_files: []
|
131
|
+
files:
|
132
|
+
- Gemfile
|
133
|
+
- LICENSE.txt
|
134
|
+
- README.md
|
135
|
+
- fontina.gemspec
|
136
|
+
- lib/fontina.rb
|
137
|
+
- lib/fontina/fetcher.rb
|
138
|
+
- lib/fontina/fetchers/http.rb
|
139
|
+
- lib/fontina/fetchers/local_file_path.rb
|
140
|
+
- lib/fontina/fetchers/local_file_uri.rb
|
141
|
+
- lib/fontina/fetchers/preprocessor.rb
|
142
|
+
- lib/fontina/format.rb
|
143
|
+
- lib/fontina/formats/fon.rb
|
144
|
+
- lib/fontina/formats/fon/constants.rb
|
145
|
+
- lib/fontina/formats/fon/container.rb
|
146
|
+
- lib/fontina/formats/fon/dos_header.rb
|
147
|
+
- lib/fontina/formats/fon/ne_exported_name_table.rb
|
148
|
+
- lib/fontina/formats/fon/ne_font_dir.rb
|
149
|
+
- lib/fontina/formats/fon/ne_header.rb
|
150
|
+
- lib/fontina/formats/fon/ne_resource.rb
|
151
|
+
- lib/fontina/formats/fon/ne_resource_name_info.rb
|
152
|
+
- lib/fontina/formats/fon/ne_resource_table.rb
|
153
|
+
- lib/fontina/formats/fon/ne_resource_type_info.rb
|
154
|
+
- lib/fontina/formats/fon/ne_vs_version_info.rb
|
155
|
+
- lib/fontina/formats/open_type.rb
|
156
|
+
- lib/fontina/formats/open_type/constants.rb
|
157
|
+
- lib/fontina/formats/open_type/container.rb
|
158
|
+
- lib/fontina/formats/open_type/head_table.rb
|
159
|
+
- lib/fontina/formats/open_type/name_table.rb
|
160
|
+
- lib/fontina/formats/open_type/offset_table.rb
|
161
|
+
- lib/fontina/formats/open_type/os2_table.rb
|
162
|
+
- lib/fontina/formats/open_type/table.rb
|
163
|
+
- lib/fontina/formats/open_type/table_directory.rb
|
164
|
+
- lib/fontina/formats/shared/language_codes/mac.rb
|
165
|
+
- lib/fontina/formats/shared/language_codes/windows.rb
|
166
|
+
- lib/fontina/formats/shared/p_string.rb
|
167
|
+
- lib/fontina/meta_package.rb
|
168
|
+
- lib/fontina/package.rb
|
169
|
+
- lib/fontina/version.rb
|
170
|
+
homepage: http://github.com/michaeljpetter/fontina
|
171
|
+
licenses:
|
172
|
+
- MIT
|
173
|
+
metadata: {}
|
174
|
+
post_install_message:
|
175
|
+
rdoc_options: []
|
176
|
+
require_paths:
|
177
|
+
- lib
|
178
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
179
|
+
requirements:
|
180
|
+
- - ">="
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '0'
|
183
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
requirements: []
|
189
|
+
rubyforge_project:
|
190
|
+
rubygems_version: 2.4.8
|
191
|
+
signing_key:
|
192
|
+
specification_version: 4
|
193
|
+
summary: A cheesy font utility
|
194
|
+
test_files: []
|