fontisan 0.2.5 → 0.2.7
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.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +41 -23
- data/README.adoc +230 -860
- data/lib/fontisan/base_collection.rb +5 -33
- data/lib/fontisan/cli.rb +27 -7
- data/lib/fontisan/collection/dfont_builder.rb +315 -0
- data/lib/fontisan/collection/shared_logic.rb +54 -0
- data/lib/fontisan/commands/convert_command.rb +118 -7
- data/lib/fontisan/commands/pack_command.rb +129 -22
- data/lib/fontisan/config/conversion_matrix.yml +175 -1
- data/lib/fontisan/constants.rb +8 -0
- data/lib/fontisan/converters/collection_converter.rb +438 -0
- data/lib/fontisan/dfont_collection.rb +269 -0
- data/lib/fontisan/font_loader.rb +90 -6
- data/lib/fontisan/parsers/dfont_parser.rb +192 -0
- data/lib/fontisan/true_type_font.rb +8 -46
- data/lib/fontisan/validation/collection_validator.rb +265 -0
- data/lib/fontisan/version.rb +1 -1
- metadata +8 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 39c9d53cc2e783d606e838535f0fe703a74718bd36b1864a7a5070ae0a4e46f2
|
|
4
|
+
data.tar.gz: a84826024c22f54279c657ac22c66f9d7f6030f4d46158a16d7801559783b521
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fbb949d64435949177b73be36751fdd3e0a89cfcbfdd3032f2307b825f10148cac330db52807aa2df1558393b55390096266a100e30ca83244b962a6f3e7d5c7
|
|
7
|
+
data.tar.gz: c6c0b91fd3d690d126720b135d99b8cd87b706066e38b84b9b2ce44069c8811d710cc271a7df48c8c8e20dc57c1702798347442872708c756df0323f838b63fe
|
data/.rubocop_todo.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on 2026-01-
|
|
3
|
+
# on 2026-01-06 02:07:50 UTC using RuboCop version 1.81.7.
|
|
4
4
|
# The point is for the user to remove these configuration records
|
|
5
5
|
# one by one as the offenses are removed from the code base.
|
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
|
@@ -34,7 +34,7 @@ Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
|
|
34
34
|
Exclude:
|
|
35
35
|
- 'lib/fontisan/hints/hint_validator.rb'
|
|
36
36
|
|
|
37
|
-
# Offense count:
|
|
37
|
+
# Offense count: 32
|
|
38
38
|
# This cop supports safe autocorrection (--autocorrect).
|
|
39
39
|
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
|
40
40
|
Layout/ExtraSpacing:
|
|
@@ -49,22 +49,32 @@ Layout/ExtraSpacing:
|
|
|
49
49
|
- 'spec/fontisan/tables/sbix_spec.rb'
|
|
50
50
|
- 'spec/fontisan/validators/basic_validator_spec.rb'
|
|
51
51
|
- 'spec/integration/color_emoji_fonts_spec.rb'
|
|
52
|
+
- 'spec/integration/dfont_pack_spec.rb'
|
|
52
53
|
|
|
53
|
-
# Offense count:
|
|
54
|
+
# Offense count: 1313
|
|
54
55
|
# This cop supports safe autocorrection (--autocorrect).
|
|
55
56
|
# Configuration parameters: Max, AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
|
|
56
57
|
# URISchemes: http, https
|
|
57
58
|
Layout/LineLength:
|
|
58
59
|
Enabled: false
|
|
59
60
|
|
|
60
|
-
# Offense count:
|
|
61
|
+
# Offense count: 1
|
|
62
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
63
|
+
# Configuration parameters: EnforcedStyle.
|
|
64
|
+
# SupportedStyles: final_newline, final_blank_line
|
|
65
|
+
Layout/TrailingEmptyLines:
|
|
66
|
+
Exclude:
|
|
67
|
+
- 'lib/fontisan/collection/shared_logic.rb'
|
|
68
|
+
|
|
69
|
+
# Offense count: 19
|
|
61
70
|
# This cop supports safe autocorrection (--autocorrect).
|
|
62
71
|
# Configuration parameters: AllowInHeredoc.
|
|
63
72
|
Layout/TrailingWhitespace:
|
|
64
73
|
Exclude:
|
|
74
|
+
- 'check_dfont.rb'
|
|
65
75
|
- 'spec/fontisan/converters/woff2_encoder_integration_spec.rb'
|
|
66
76
|
|
|
67
|
-
# Offense count:
|
|
77
|
+
# Offense count: 27
|
|
68
78
|
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch.
|
|
69
79
|
Lint/DuplicateBranch:
|
|
70
80
|
Enabled: false
|
|
@@ -116,13 +126,14 @@ Lint/UnusedBlockArgument:
|
|
|
116
126
|
- 'spec/fontisan/validators/profile_loader_spec.rb'
|
|
117
127
|
- 'spec/fontisan/validators/validator_spec.rb'
|
|
118
128
|
|
|
119
|
-
# Offense count:
|
|
129
|
+
# Offense count: 13
|
|
120
130
|
# This cop supports safe autocorrection (--autocorrect).
|
|
121
131
|
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods, NotImplementedExceptions.
|
|
122
132
|
# NotImplementedExceptions: NotImplementedError
|
|
123
133
|
Lint/UnusedMethodArgument:
|
|
124
134
|
Exclude:
|
|
125
135
|
- 'lib/fontisan.rb'
|
|
136
|
+
- 'lib/fontisan/converters/collection_converter.rb'
|
|
126
137
|
- 'lib/fontisan/font_loader.rb'
|
|
127
138
|
- 'lib/fontisan/optimizers/charstring_rewriter.rb'
|
|
128
139
|
- 'lib/fontisan/tables/cff2/private_dict_blend_handler.rb'
|
|
@@ -149,12 +160,12 @@ Lint/UselessAssignment:
|
|
|
149
160
|
- 'spec/fontisan/hints/hint_round_trip_spec.rb'
|
|
150
161
|
- 'spec/fontisan/validators/validator_spec.rb'
|
|
151
162
|
|
|
152
|
-
# Offense count:
|
|
163
|
+
# Offense count: 464
|
|
153
164
|
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
|
|
154
165
|
Metrics/AbcSize:
|
|
155
166
|
Enabled: false
|
|
156
167
|
|
|
157
|
-
# Offense count:
|
|
168
|
+
# Offense count: 30
|
|
158
169
|
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
|
|
159
170
|
# AllowedMethods: refine
|
|
160
171
|
Metrics/BlockLength:
|
|
@@ -165,23 +176,23 @@ Metrics/BlockLength:
|
|
|
165
176
|
Metrics/BlockNesting:
|
|
166
177
|
Max: 5
|
|
167
178
|
|
|
168
|
-
# Offense count:
|
|
179
|
+
# Offense count: 233
|
|
169
180
|
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
|
170
181
|
Metrics/CyclomaticComplexity:
|
|
171
182
|
Enabled: false
|
|
172
183
|
|
|
173
|
-
# Offense count:
|
|
184
|
+
# Offense count: 707
|
|
174
185
|
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
|
175
186
|
Metrics/MethodLength:
|
|
176
187
|
Max: 135
|
|
177
188
|
|
|
178
|
-
# Offense count:
|
|
189
|
+
# Offense count: 20
|
|
179
190
|
# Configuration parameters: CountKeywordArgs.
|
|
180
191
|
Metrics/ParameterLists:
|
|
181
192
|
Max: 39
|
|
182
193
|
MaxOptionalParameters: 4
|
|
183
194
|
|
|
184
|
-
# Offense count:
|
|
195
|
+
# Offense count: 171
|
|
185
196
|
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
|
186
197
|
Metrics/PerceivedComplexity:
|
|
187
198
|
Enabled: false
|
|
@@ -196,7 +207,7 @@ Naming/MethodParameterName:
|
|
|
196
207
|
- 'lib/fontisan/tables/glyf/curve_converter.rb'
|
|
197
208
|
- 'lib/fontisan/variation/optimizer.rb'
|
|
198
209
|
|
|
199
|
-
# Offense count:
|
|
210
|
+
# Offense count: 87
|
|
200
211
|
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
|
|
201
212
|
# SupportedStyles: snake_case, normalcase, non_integer
|
|
202
213
|
# AllowedIdentifiers: TLS1_1, TLS1_2, capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
|
|
@@ -245,7 +256,7 @@ RSpec/AnyInstance:
|
|
|
245
256
|
RSpec/ContextWording:
|
|
246
257
|
Enabled: false
|
|
247
258
|
|
|
248
|
-
# Offense count:
|
|
259
|
+
# Offense count: 22
|
|
249
260
|
# Configuration parameters: IgnoredMetadata.
|
|
250
261
|
RSpec/DescribeClass:
|
|
251
262
|
Enabled: false
|
|
@@ -256,7 +267,7 @@ RSpec/DescribeMethod:
|
|
|
256
267
|
- 'spec/fontisan/collection/variable_font_builder_spec.rb'
|
|
257
268
|
- 'spec/fontisan/converters/woff2_encoder_integration_spec.rb'
|
|
258
269
|
|
|
259
|
-
# Offense count:
|
|
270
|
+
# Offense count: 1280
|
|
260
271
|
# Configuration parameters: CountAsOne.
|
|
261
272
|
RSpec/ExampleLength:
|
|
262
273
|
Max: 66
|
|
@@ -330,11 +341,11 @@ RSpec/MultipleDescribes:
|
|
|
330
341
|
- 'spec/fontisan/utils/thread_pool_spec.rb'
|
|
331
342
|
- 'spec/fontisan/variation/cache_spec.rb'
|
|
332
343
|
|
|
333
|
-
# Offense count:
|
|
344
|
+
# Offense count: 1697
|
|
334
345
|
RSpec/MultipleExpectations:
|
|
335
|
-
Max:
|
|
346
|
+
Max: 19
|
|
336
347
|
|
|
337
|
-
# Offense count:
|
|
348
|
+
# Offense count: 149
|
|
338
349
|
# Configuration parameters: AllowSubject.
|
|
339
350
|
RSpec/MultipleMemoizedHelpers:
|
|
340
351
|
Max: 13
|
|
@@ -404,7 +415,7 @@ RSpec/VerifiedDoubleReference:
|
|
|
404
415
|
Exclude:
|
|
405
416
|
- 'spec/fontisan/variation/parallel_generator_spec.rb'
|
|
406
417
|
|
|
407
|
-
# Offense count:
|
|
418
|
+
# Offense count: 289
|
|
408
419
|
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
|
|
409
420
|
RSpec/VerifiedDoubles:
|
|
410
421
|
Enabled: false
|
|
@@ -450,12 +461,13 @@ Style/ConditionalAssignment:
|
|
|
450
461
|
Exclude:
|
|
451
462
|
- 'lib/fontisan/formatters/text_formatter.rb'
|
|
452
463
|
|
|
453
|
-
# Offense count:
|
|
464
|
+
# Offense count: 2
|
|
454
465
|
# This cop supports safe autocorrection (--autocorrect).
|
|
455
466
|
# Configuration parameters: EnforcedStyle, AllowComments.
|
|
456
467
|
# SupportedStyles: empty, nil, both
|
|
457
468
|
Style/EmptyElse:
|
|
458
469
|
Exclude:
|
|
470
|
+
- 'lib/fontisan/commands/convert_command.rb'
|
|
459
471
|
- 'lib/fontisan/validators/validator.rb'
|
|
460
472
|
|
|
461
473
|
# Offense count: 17
|
|
@@ -562,12 +574,13 @@ Style/RescueStandardError:
|
|
|
562
574
|
- 'lib/fontisan/commands/validate_command.rb'
|
|
563
575
|
- 'lib/fontisan/validators/validator.rb'
|
|
564
576
|
|
|
565
|
-
# Offense count:
|
|
577
|
+
# Offense count: 7
|
|
566
578
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
567
579
|
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
|
|
568
580
|
# AllowedMethods: present?, blank?, presence, try, try!
|
|
569
581
|
Style/SafeNavigation:
|
|
570
582
|
Exclude:
|
|
583
|
+
- 'lib/fontisan/cli.rb'
|
|
571
584
|
- 'lib/fontisan/tables/maxp.rb'
|
|
572
585
|
- 'lib/fontisan/tables/os2.rb'
|
|
573
586
|
- 'lib/fontisan/validators/validator.rb'
|
|
@@ -586,12 +599,15 @@ Style/StringConcatenation:
|
|
|
586
599
|
Exclude:
|
|
587
600
|
- 'spec/fontisan/tables/cbdt_spec.rb'
|
|
588
601
|
|
|
589
|
-
# Offense count:
|
|
602
|
+
# Offense count: 56
|
|
590
603
|
# This cop supports safe autocorrection (--autocorrect).
|
|
591
604
|
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
|
592
605
|
# SupportedStyles: single_quotes, double_quotes
|
|
593
606
|
Style/StringLiterals:
|
|
594
607
|
Exclude:
|
|
608
|
+
- 'check_dfont.rb'
|
|
609
|
+
- 'lib/fontisan/commands/convert_command.rb'
|
|
610
|
+
- 'lib/fontisan/converters/collection_converter.rb'
|
|
595
611
|
- 'lib/fontisan/validators/font_book_validator.rb'
|
|
596
612
|
- 'lib/fontisan/validators/opentype_validator.rb'
|
|
597
613
|
- 'lib/fontisan/validators/web_font_validator.rb'
|
|
@@ -616,13 +632,14 @@ Style/SymbolProc:
|
|
|
616
632
|
- 'lib/fontisan/validators/web_font_validator.rb'
|
|
617
633
|
- 'spec/fontisan/validators/validator_spec.rb'
|
|
618
634
|
|
|
619
|
-
# Offense count:
|
|
635
|
+
# Offense count: 69
|
|
620
636
|
# This cop supports safe autocorrection (--autocorrect).
|
|
621
637
|
# Configuration parameters: EnforcedStyleForMultiline.
|
|
622
638
|
# SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
|
|
623
639
|
Style/TrailingCommaInArguments:
|
|
624
640
|
Exclude:
|
|
625
641
|
- 'lib/fontisan/cli.rb'
|
|
642
|
+
- 'lib/fontisan/commands/convert_command.rb'
|
|
626
643
|
- 'lib/fontisan/commands/info_command.rb'
|
|
627
644
|
- 'spec/fontisan/converters/woff2_encoder_integration_spec.rb'
|
|
628
645
|
- 'spec/fontisan/models/validation_report_spec.rb'
|
|
@@ -631,6 +648,7 @@ Style/TrailingCommaInArguments:
|
|
|
631
648
|
- 'spec/fontisan/tables/sbix_spec.rb'
|
|
632
649
|
- 'spec/fontisan/validators/basic_validator_spec.rb'
|
|
633
650
|
- 'spec/integration/color_emoji_fonts_spec.rb'
|
|
651
|
+
- 'spec/integration/dfont_pack_spec.rb'
|
|
634
652
|
|
|
635
653
|
# Offense count: 12
|
|
636
654
|
# This cop supports safe autocorrection (--autocorrect).
|