fontisan 0.2.13 → 0.2.16

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 (145) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop_todo.yml +56 -196
  3. data/Gemfile +1 -1
  4. data/docs/.gitignore +17 -0
  5. data/docs/.vitepress/config.ts +317 -0
  6. data/docs/.vitepress/theme/components/ApiMethod.vue +127 -0
  7. data/docs/.vitepress/theme/components/Badge.vue +51 -0
  8. data/docs/.vitepress/theme/components/FeatureComparison.vue +87 -0
  9. data/docs/.vitepress/theme/components/HeroCodeBlock.vue +98 -0
  10. data/docs/.vitepress/theme/components/WithinHero.vue +30 -0
  11. data/docs/.vitepress/theme/index.ts +22 -0
  12. data/docs/.vitepress/theme/style.css +330 -0
  13. data/docs/api/conversion-options.md +141 -0
  14. data/docs/api/converters/curve-converter.md +34 -0
  15. data/docs/api/converters/hint-converter.md +34 -0
  16. data/docs/api/converters/outline-converter.md +27 -0
  17. data/docs/api/font-loader.md +111 -0
  18. data/docs/api/font-writer.md +103 -0
  19. data/docs/api/index.md +79 -0
  20. data/docs/api/models/glyph-accessor.md +43 -0
  21. data/docs/api/models/glyph.md +40 -0
  22. data/docs/api/models/table-analyzer.md +35 -0
  23. data/docs/api/sfnt-font.md +53 -0
  24. data/docs/api/type1-font.md +43 -0
  25. data/docs/api/validators/font-validator.md +31 -0
  26. data/docs/api/validators/helper.md +36 -0
  27. data/docs/api/validators/profile.md +39 -0
  28. data/docs/cli/convert.md +87 -0
  29. data/docs/cli/dump-table.md +110 -0
  30. data/docs/cli/export.md +176 -0
  31. data/docs/cli/features.md +124 -0
  32. data/docs/cli/glyphs.md +90 -0
  33. data/docs/cli/index.md +208 -0
  34. data/docs/cli/info.md +254 -0
  35. data/docs/cli/instance.md +122 -0
  36. data/docs/cli/ls.md +95 -0
  37. data/docs/cli/optical-size.md +94 -0
  38. data/docs/cli/pack.md +125 -0
  39. data/docs/cli/scripts.md +105 -0
  40. data/docs/cli/subset.md +39 -0
  41. data/docs/cli/tables.md +84 -0
  42. data/docs/cli/unicode.md +101 -0
  43. data/docs/cli/validate.md +48 -0
  44. data/docs/cli/variable.md +126 -0
  45. data/docs/cli/version.md +46 -0
  46. data/docs/guide/cli/convert.md +108 -0
  47. data/docs/guide/cli/export.md +138 -0
  48. data/docs/guide/cli/index.md +99 -0
  49. data/docs/guide/cli/info.md +144 -0
  50. data/docs/guide/cli/pack.md +155 -0
  51. data/docs/guide/cli/subset.md +118 -0
  52. data/docs/guide/cli/validate.md +139 -0
  53. data/docs/guide/color-fonts/bitmaps.md +177 -0
  54. data/docs/guide/color-fonts/colr-cpal.md +175 -0
  55. data/docs/guide/color-fonts/index.md +140 -0
  56. data/docs/guide/color-fonts/svg.md +154 -0
  57. data/docs/guide/color.md +51 -0
  58. data/docs/guide/comparisons/font-validator.md +222 -0
  59. data/docs/guide/comparisons/fonttools.md +200 -0
  60. data/docs/guide/comparisons/index.md +83 -0
  61. data/docs/guide/comparisons/lcdf-typetools.md +205 -0
  62. data/docs/guide/contributing.md +279 -0
  63. data/docs/guide/conversion/collections.md +251 -0
  64. data/docs/guide/conversion/curves.md +246 -0
  65. data/docs/guide/conversion/index.md +157 -0
  66. data/docs/guide/conversion/options.md +251 -0
  67. data/docs/guide/conversion/ttf-otf.md +184 -0
  68. data/docs/guide/conversion/type1.md +208 -0
  69. data/docs/guide/conversion/web.md +240 -0
  70. data/docs/guide/conversion.md +39 -0
  71. data/docs/guide/formats/collections.md +147 -0
  72. data/docs/guide/formats/dfont.md +99 -0
  73. data/docs/guide/formats/index.md +65 -0
  74. data/docs/guide/formats/otf.md +103 -0
  75. data/docs/guide/formats/svg.md +97 -0
  76. data/docs/guide/formats/ttf.md +105 -0
  77. data/docs/guide/formats/type1.md +118 -0
  78. data/docs/guide/formats/woff.md +115 -0
  79. data/docs/guide/hinting/autohint.md +141 -0
  80. data/docs/guide/hinting/conversion.md +161 -0
  81. data/docs/guide/hinting/index.md +86 -0
  82. data/docs/guide/hinting/postscript.md +149 -0
  83. data/docs/guide/hinting/truetype.md +135 -0
  84. data/docs/guide/hinting.md +44 -0
  85. data/docs/guide/index.md +152 -0
  86. data/docs/guide/installation.md +116 -0
  87. data/docs/guide/migrations/extract-ttc.md +549 -0
  88. data/docs/guide/migrations/font-validator.md +260 -0
  89. data/docs/guide/migrations/fonttools.md +208 -0
  90. data/docs/guide/migrations/index.md +64 -0
  91. data/docs/guide/migrations/otfinfo.md +197 -0
  92. data/docs/guide/quick-start.md +204 -0
  93. data/docs/guide/type1.md +58 -0
  94. data/docs/guide/universal-outline.md +151 -0
  95. data/docs/guide/validation/custom.md +195 -0
  96. data/docs/guide/validation/helpers.md +188 -0
  97. data/docs/guide/validation/index.md +132 -0
  98. data/docs/guide/validation/profiles.md +156 -0
  99. data/docs/guide/validation.md +47 -0
  100. data/docs/guide/variable-fonts/advanced.md +231 -0
  101. data/docs/guide/variable-fonts/axes.md +209 -0
  102. data/docs/guide/variable-fonts/conversion.md +197 -0
  103. data/docs/guide/variable-fonts/index.md +84 -0
  104. data/docs/guide/variable-fonts/instances.md +187 -0
  105. data/docs/guide/variable-fonts/named-instances.md +194 -0
  106. data/docs/guide/variable-fonts/static.md +168 -0
  107. data/docs/guide/variable.md +58 -0
  108. data/docs/guide/woff.md +59 -0
  109. data/docs/index.md +136 -0
  110. data/docs/lychee.toml +37 -0
  111. data/docs/package-lock.json +2560 -0
  112. data/docs/package.json +15 -0
  113. data/docs/public/apple-touch-icon.png +0 -0
  114. data/docs/public/favicon-96x96.png +0 -0
  115. data/docs/public/favicon.ico +0 -0
  116. data/docs/public/favicon.svg +1 -0
  117. data/docs/public/logo-full.svg +1 -0
  118. data/docs/public/logo.svg +1 -0
  119. data/docs/public/site.webmanifest +21 -0
  120. data/docs/public/web-app-manifest-192x192.png +0 -0
  121. data/docs/public/web-app-manifest-512x512.png +0 -0
  122. data/fontisan.gemspec +1 -1
  123. data/lib/fontisan/commands/features_command.rb +0 -1
  124. data/lib/fontisan/commands/info_command.rb +5 -5
  125. data/lib/fontisan/commands/scripts_command.rb +0 -1
  126. data/lib/fontisan/converters/format_converter.rb +2 -1
  127. data/lib/fontisan/converters/type1_converter.rb +65 -60
  128. data/lib/fontisan/hints/hint_converter.rb +2 -1
  129. data/lib/fontisan/loading_modes.rb +0 -2
  130. data/lib/fontisan/open_type_font.rb +0 -40
  131. data/lib/fontisan/sfnt_font.rb +41 -22
  132. data/lib/fontisan/tables/glyf/compound_glyph.rb +0 -1
  133. data/lib/fontisan/true_type_collection.rb +8 -8
  134. data/lib/fontisan/true_type_font.rb +1 -59
  135. data/lib/fontisan/type1/afm_parser.rb +2 -1
  136. data/lib/fontisan/type1/cff_to_type1_converter.rb +24 -19
  137. data/lib/fontisan/type1/private_dict.rb +28 -7
  138. data/lib/fontisan/type1/seac_expander.rb +22 -17
  139. data/lib/fontisan/variable/delta_applicator.rb +3 -3
  140. data/lib/fontisan/variation/optimizer.rb +0 -1
  141. data/lib/fontisan/version.rb +1 -1
  142. data/lib/fontisan/woff2_font.rb +2 -2
  143. data/lib/fontisan/woff_font.rb +3 -3
  144. data/lib/fontisan.rb +3 -2
  145. metadata +122 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 368b69c9050597188840f118f60dcb46247feae93ffe7e53c1954991d790ab95
4
- data.tar.gz: 4c3e591c4a180734430a099a07036c2888ec7da62f5ccb39d33440b9a2b2346b
3
+ metadata.gz: 356bd0157b272462910d8822c6b77a6c768e12a45f4c56b2646d6bc683413239
4
+ data.tar.gz: 981dca0c122d3d3e2dab683c6a7962bc2bcc1be35fb5c0818857d6c55ff7bbbf
5
5
  SHA512:
6
- metadata.gz: 73e614a107d14632d9fa25b1e0605503e3e5d7642230f9acc1a0ebe93a6262f7947b95e73a7c7aa5a5a0f0ec0b56fb34d8e148b7c59c57c30a4690795c280a22
7
- data.tar.gz: 6b1144b3f402d2c374c5fc4b16918c66751a603a7a4af15a63b9df36c3f7a617a0ce7ca1e6774fb40c55174e52f7f588c23831655f31c0b722281f15f2ba6179
6
+ metadata.gz: '0852e6bc36559c125cab91cf4fe4d65256628df2e8c873bc52b4f291b2adc944126ed2a0e26d6daafbe7d568934a9788677cb47c8b70982097320addbc93365a'
7
+ data.tar.gz: dc9d8fdacf95fc0761bb62cfec0f56e7a7da1a78986915db76243461cf2434d3f8142a0547e153d6746e242aa4a3a5dc33b5b505e8ac073e467e9b9c269d97bf
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-21 09:04:34 UTC using RuboCop version 1.82.1.
3
+ # on 2026-05-02 04:07:39 UTC using RuboCop version 1.86.1.
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
@@ -8,95 +8,56 @@
8
8
 
9
9
  # Offense count: 1
10
10
  # This cop supports safe autocorrection (--autocorrect).
11
- # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation.
12
- Bundler/OrderedGems:
11
+ Gemspec/RequireMFA:
13
12
  Exclude:
14
- - 'Gemfile'
13
+ - 'docs/node_modules/speakingurl/speakingurl-rails.gemspec'
15
14
 
16
- # Offense count: 1
15
+ # Offense count: 2
17
16
  Gemspec/RequiredRubyVersion:
18
17
  Exclude:
18
+ - 'docs/node_modules/speakingurl/speakingurl-rails.gemspec'
19
19
  - 'fontisan.gemspec'
20
20
 
21
- # Offense count: 2
22
- # This cop supports safe autocorrection (--autocorrect).
23
- # Configuration parameters: EnforcedStyle, IndentationWidth.
24
- # SupportedStyles: with_first_argument, with_fixed_indentation
25
- Layout/ArgumentAlignment:
26
- Exclude:
27
- - 'lib/fontisan/type1/cff_to_type1_converter.rb'
28
- - 'spec/performance/type1_performance_spec.rb'
29
-
30
- # Offense count: 2
31
- # This cop supports safe autocorrection (--autocorrect).
32
- Layout/ElseAlignment:
33
- Exclude:
34
- - 'lib/fontisan/commands/info_command.rb'
35
- - 'lib/fontisan/converters/type1_converter.rb'
36
-
37
21
  # Offense count: 1
38
22
  # This cop supports safe autocorrection (--autocorrect).
39
- Layout/EmptyLineAfterGuardClause:
23
+ Layout/EmptyLines:
40
24
  Exclude:
41
- - 'spec/validation/type1_validation_spec.rb'
25
+ - 'lib/fontisan/loading_modes.rb'
42
26
 
43
- # Offense count: 2
44
- # This cop supports safe autocorrection (--autocorrect).
45
- # Configuration parameters: EnforcedStyleAlignWith.
46
- # SupportedStylesAlignWith: keyword, variable, start_of_line
47
- Layout/EndAlignment:
48
- Exclude:
49
- - 'lib/fontisan/commands/info_command.rb'
50
- - 'lib/fontisan/converters/type1_converter.rb'
51
-
52
- # Offense count: 63
27
+ # Offense count: 4
53
28
  # This cop supports safe autocorrection (--autocorrect).
54
29
  # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
55
30
  Layout/ExtraSpacing:
56
31
  Exclude:
57
- - 'lib/fontisan/commands/info_command.rb'
58
- - 'lib/fontisan/converters/type1_converter.rb'
59
- - 'lib/fontisan/type1/cff_to_type1_converter.rb'
60
- - 'lib/fontisan/type1/seac_expander.rb'
61
- - 'spec/fontisan/converters/type1_converter_spec.rb'
62
- - 'spec/fontisan/type1/cff_to_type1_converter_spec.rb'
63
- - 'spec/fontisan/type1/seac_expander_spec.rb'
64
-
65
- # Offense count: 24
66
- # This cop supports safe autocorrection (--autocorrect).
67
- # Configuration parameters: EnforcedStyle, IndentationWidth.
68
- # SupportedStyles: special_inside_parentheses, consistent, align_braces
69
- Layout/FirstHashElementIndentation:
70
- Exclude:
71
- - 'spec/fontisan/converters/type1_converter_spec.rb'
72
- - 'spec/fontisan/type1/seac_expander_spec.rb'
73
- - 'spec/integration/type1_conversion_spec.rb'
74
- - 'spec/validation/type1_validation_spec.rb'
32
+ - 'docs/node_modules/speakingurl/lib/speakingurl-rails.rb'
33
+ - 'docs/node_modules/speakingurl/speakingurl-rails.gemspec'
75
34
 
76
- # Offense count: 2
35
+ # Offense count: 1
77
36
  # This cop supports safe autocorrection (--autocorrect).
78
- # Configuration parameters: Width, AllowedPatterns.
79
- Layout/IndentationWidth:
37
+ # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
38
+ # SupportedHashRocketStyles: key, separator, table
39
+ # SupportedColonStyles: key, separator, table
40
+ # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
41
+ Layout/HashAlignment:
80
42
  Exclude:
81
- - 'lib/fontisan/commands/info_command.rb'
82
- - 'lib/fontisan/converters/type1_converter.rb'
43
+ - 'docs/node_modules/speakingurl/speakingurl-rails.gemspec'
83
44
 
84
- # Offense count: 1596
45
+ # Offense count: 1585
85
46
  # This cop supports safe autocorrection (--autocorrect).
86
47
  # Configuration parameters: Max, AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings.
87
48
  # URISchemes: http, https
88
49
  Layout/LineLength:
89
50
  Enabled: false
90
51
 
91
- # Offense count: 2
52
+ # Offense count: 5
92
53
  # This cop supports safe autocorrection (--autocorrect).
93
54
  # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator, EnforcedStyleForRationalLiterals.
94
55
  # SupportedStylesForExponentOperator: space, no_space
95
56
  # SupportedStylesForRationalLiterals: space, no_space
96
57
  Layout/SpaceAroundOperators:
97
58
  Exclude:
98
- - 'lib/fontisan/converters/type1_converter.rb'
99
- - 'spec/validation/type1_validation_spec.rb'
59
+ - 'docs/node_modules/speakingurl/lib/speakingurl-rails.rb'
60
+ - 'docs/node_modules/speakingurl/speakingurl-rails.gemspec'
100
61
 
101
62
  # Offense count: 3
102
63
  Lint/CopDirectiveSyntax:
@@ -153,16 +114,14 @@ Lint/MissingSuper:
153
114
  - 'lib/fontisan/commands/validate_command.rb'
154
115
  - 'lib/fontisan/tables/cff2/table_builder.rb'
155
116
 
156
- # Offense count: 9
157
- # This cop supports unsafe autocorrection (--autocorrect-all).
158
- # Configuration parameters: AllowedMethods, InferNonNilReceiver, AdditionalNilMethods.
159
- # AllowedMethods: instance_of?, kind_of?, is_a?, eql?, respond_to?, equal?
160
- # AdditionalNilMethods: present?, blank?, try, try!
161
- Lint/RedundantSafeNavigation:
117
+ # Offense count: 4
118
+ # This cop supports safe autocorrection (--autocorrect).
119
+ Lint/RedundantRequireStatement:
162
120
  Exclude:
163
- - 'lib/fontisan/converters/type1_converter.rb'
164
- - 'lib/fontisan/type1/cff_to_type1_converter.rb'
165
- - 'spec/fontisan/converters/type1_property_spec.rb'
121
+ - 'lib/fontisan/commands/features_command.rb'
122
+ - 'lib/fontisan/commands/scripts_command.rb'
123
+ - 'lib/fontisan/loading_modes.rb'
124
+ - 'lib/fontisan/variation/optimizer.rb'
166
125
 
167
126
  # Offense count: 1
168
127
  Lint/StructNewOverride:
@@ -183,20 +142,13 @@ Lint/UnusedMethodArgument:
183
142
  - 'lib/fontisan/woff2/glyf_transformer.rb'
184
143
  - 'lib/fontisan/woff_font.rb'
185
144
 
186
- # Offense count: 5
187
- # This cop supports safe autocorrection (--autocorrect).
188
- Lint/UselessAssignment:
189
- Exclude:
190
- - 'lib/fontisan/type1/seac_expander.rb'
191
- - 'spec/performance/type1_performance_spec.rb'
192
-
193
145
  # Offense count: 5
194
146
  Lint/UselessConstantScoping:
195
147
  Exclude:
196
148
  - 'lib/fontisan/conversion_options.rb'
197
149
  - 'lib/fontisan/type1/charstrings.rb'
198
150
 
199
- # Offense count: 552
151
+ # Offense count: 549
200
152
  # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
201
153
  Metrics/AbcSize:
202
154
  Enabled: false
@@ -205,7 +157,7 @@ Metrics/AbcSize:
205
157
  # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
206
158
  # AllowedMethods: refine
207
159
  Metrics/BlockLength:
208
- Max: 101
160
+ Max: 104
209
161
 
210
162
  # Offense count: 8
211
163
  # Configuration parameters: CountBlocks, CountModifierForms.
@@ -224,7 +176,7 @@ Metrics/CollectionLiteralLength:
224
176
  Metrics/CyclomaticComplexity:
225
177
  Enabled: false
226
178
 
227
- # Offense count: 905
179
+ # Offense count: 842
228
180
  # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
229
181
  Metrics/MethodLength:
230
182
  Max: 135
@@ -255,7 +207,7 @@ Naming/MethodParameterName:
255
207
  # Offense count: 13
256
208
  # Configuration parameters: Mode, AllowedMethods, AllowedPatterns, AllowBangMethods, WaywardPredicates.
257
209
  # AllowedMethods: call
258
- # WaywardPredicates: nonzero?
210
+ # WaywardPredicates: infinite?, nonzero?
259
211
  Naming/PredicateMethod:
260
212
  Exclude:
261
213
  - 'lib/fontisan/collection/builder.rb'
@@ -278,7 +230,7 @@ Naming/PredicateMethod:
278
230
  # MethodDefinitionMacros: define_method, define_singleton_method
279
231
  Naming/PredicatePrefix:
280
232
  Exclude:
281
- - '../../../.cache/rubocop_cache/spec/**/*'
233
+ - 'spec/**/*'
282
234
  - 'lib/fontisan/type1/afm_generator.rb'
283
235
 
284
236
  # Offense count: 21
@@ -306,13 +258,7 @@ RSpec/AnyInstance:
306
258
  - 'spec/fontisan/variation/parallel_generator_spec.rb'
307
259
  - 'spec/integration/format_conversion_spec.rb'
308
260
 
309
- # Offense count: 1
310
- # This cop supports unsafe autocorrection (--autocorrect-all).
311
- RSpec/BeEq:
312
- Exclude:
313
- - 'spec/fontisan/converters/type1_property_spec.rb'
314
-
315
- # Offense count: 127
261
+ # Offense count: 128
316
262
  # Configuration parameters: Prefixes, AllowedPatterns.
317
263
  # Prefixes: when, with, without
318
264
  RSpec/ContextWording:
@@ -334,7 +280,7 @@ RSpec/DescribeMethod:
334
280
  - 'spec/fontisan/type1/seac_expander_spec.rb'
335
281
  - 'spec/fontisan/type1_real_fonts_spec.rb'
336
282
 
337
- # Offense count: 1426
283
+ # Offense count: 1428
338
284
  # Configuration parameters: CountAsOne.
339
285
  RSpec/ExampleLength:
340
286
  Max: 66
@@ -386,12 +332,6 @@ RSpec/IteratedExpectation:
386
332
  Exclude:
387
333
  - 'spec/fontisan/tables/glyf_spec.rb'
388
334
 
389
- # Offense count: 1
390
- # This cop supports safe autocorrection (--autocorrect).
391
- RSpec/LeadingSubject:
392
- Exclude:
393
- - 'spec/fontisan/type1/seac_expander_spec.rb'
394
-
395
335
  # Offense count: 25
396
336
  # Configuration parameters: EnforcedStyle.
397
337
  # SupportedStyles: have_received, receive
@@ -417,7 +357,7 @@ RSpec/MultipleDescribes:
417
357
  - 'spec/fontisan/utils/thread_pool_spec.rb'
418
358
  - 'spec/fontisan/variation/cache_spec.rb'
419
359
 
420
- # Offense count: 1852
360
+ # Offense count: 1855
421
361
  RSpec/MultipleExpectations:
422
362
  Max: 19
423
363
 
@@ -441,16 +381,6 @@ RSpec/NoExpectationExample:
441
381
  - 'spec/fontisan/validators/validator_spec.rb'
442
382
  - 'spec/fontisan/variation/variable_svg_generator_spec.rb'
443
383
 
444
- # Offense count: 415
445
- # This cop supports unsafe autocorrection (--autocorrect-all).
446
- RSpec/ReceiveMessages:
447
- Exclude:
448
- - 'spec/fontisan/converters/type1_converter_spec.rb'
449
- - 'spec/fontisan/converters/type1_property_spec.rb'
450
- - 'spec/integration/type1_conversion_spec.rb'
451
- - 'spec/performance/type1_performance_spec.rb'
452
- - 'spec/validation/type1_validation_spec.rb'
453
-
454
384
  # Offense count: 13
455
385
  RSpec/RepeatedExample:
456
386
  Exclude:
@@ -495,17 +425,6 @@ Security/Open:
495
425
  Exclude:
496
426
  - 'Rakefile'
497
427
 
498
- # Offense count: 2
499
- # This cop supports safe autocorrection (--autocorrect).
500
- # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
501
- # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
502
- # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
503
- # FunctionalMethods: let, let!, subject, watch
504
- # AllowedMethods: lambda, proc, it
505
- Style/BlockDelimiters:
506
- Exclude:
507
- - 'spec/fontisan/type1/seac_expander_spec.rb'
508
-
509
428
  # Offense count: 6
510
429
  # This cop supports safe autocorrection (--autocorrect).
511
430
  Style/ComparableClamp:
@@ -515,14 +434,6 @@ Style/ComparableClamp:
515
434
  - 'lib/fontisan/variable/axis_normalizer.rb'
516
435
  - 'lib/fontisan/variation/interpolator.rb'
517
436
 
518
- # Offense count: 4
519
- # This cop supports safe autocorrection (--autocorrect).
520
- # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
521
- # SupportedStyles: assign_to_condition, assign_inside_condition
522
- Style/ConditionalAssignment:
523
- Exclude:
524
- - 'lib/fontisan/converters/type1_converter.rb'
525
-
526
437
  # Offense count: 2
527
438
  # This cop supports safe autocorrection (--autocorrect).
528
439
  # Configuration parameters: EnforcedStyle, AllowComments.
@@ -531,6 +442,13 @@ Style/EmptyElse:
531
442
  Exclude:
532
443
  - 'lib/fontisan/type1/seac_expander.rb'
533
444
 
445
+ # Offense count: 2
446
+ # This cop supports safe autocorrection (--autocorrect).
447
+ Style/ExpandPathArguments:
448
+ Exclude:
449
+ - 'docs/node_modules/speakingurl/lib/speakingurl-rails.rb'
450
+ - 'docs/node_modules/speakingurl/speakingurl-rails.gemspec'
451
+
534
452
  # Offense count: 11
535
453
  # This cop supports safe autocorrection (--autocorrect).
536
454
  # Configuration parameters: EnforcedStyle, MaxUnannotatedPlaceholdersAllowed, Mode, AllowedMethods, AllowedPatterns.
@@ -540,12 +458,6 @@ Style/FormatStringToken:
540
458
  - 'lib/fontisan/formatters/text_formatter.rb'
541
459
  - 'scripts/measure_optimization.rb'
542
460
 
543
- # Offense count: 1
544
- # This cop supports unsafe autocorrection (--autocorrect-all).
545
- Style/HashExcept:
546
- Exclude:
547
- - 'lib/fontisan/hints/hint_converter.rb'
548
-
549
461
  # Offense count: 3
550
462
  # Configuration parameters: MinBranchesCount.
551
463
  Style/HashLikeCase:
@@ -554,15 +466,14 @@ Style/HashLikeCase:
554
466
  - 'lib/fontisan/commands/unpack_command.rb'
555
467
  - 'lib/fontisan/models/validation_report.rb'
556
468
 
557
- # Offense count: 4
558
- # This cop supports unsafe autocorrection (--autocorrect-all).
559
- # Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
560
- # SupportedStyles: predicate, comparison
561
- Style/NumericPredicate:
469
+ # Offense count: 1
470
+ # This cop supports safe autocorrection (--autocorrect).
471
+ # Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
472
+ # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
473
+ # SupportedShorthandSyntax: always, never, either, consistent, either_consistent
474
+ Style/HashSyntax:
562
475
  Exclude:
563
- - 'spec/**/*'
564
- - 'lib/fontisan/type1/cff_to_type1_converter.rb'
565
- - 'lib/fontisan/type1/seac_expander.rb'
476
+ - 'docs/node_modules/speakingurl/lib/speakingurl-rails.rb'
566
477
 
567
478
  # Offense count: 1
568
479
  # Configuration parameters: AllowedMethods.
@@ -571,62 +482,11 @@ Style/OptionalBooleanParameter:
571
482
  Exclude:
572
483
  - 'lib/fontisan/conversion_options.rb'
573
484
 
574
- # Offense count: 1
575
- # This cop supports safe autocorrection (--autocorrect).
576
- Style/ParallelAssignment:
577
- Exclude:
578
- - 'lib/fontisan/type1/cff_to_type1_converter.rb'
579
-
580
- # Offense count: 2
581
- # This cop supports unsafe autocorrection (--autocorrect-all).
582
- # Configuration parameters: Methods.
583
- Style/RedundantArgument:
584
- Exclude:
585
- - 'lib/fontisan/type1/cff_to_type1_converter.rb'
586
-
587
- # Offense count: 1
588
- # This cop supports safe autocorrection (--autocorrect).
589
- Style/RedundantParentheses:
590
- Exclude:
591
- - 'lib/fontisan/converters/type1_converter.rb'
592
-
593
- # Offense count: 1
594
- # This cop supports safe autocorrection (--autocorrect).
595
- # Configuration parameters: AllowModifier.
596
- Style/SoleNestedConditional:
597
- Exclude:
598
- - 'lib/fontisan/converters/type1_converter.rb'
599
-
600
- # Offense count: 1
601
- # This cop supports safe autocorrection (--autocorrect).
602
- # Configuration parameters: EnforcedStyle, AllowSafeAssignment.
603
- # SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
604
- Style/TernaryParentheses:
605
- Exclude:
606
- - 'lib/fontisan/converters/type1_converter.rb'
607
-
608
- # Offense count: 2
609
- # This cop supports safe autocorrection (--autocorrect).
610
- # Configuration parameters: EnforcedStyleForMultiline.
611
- # SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
612
- Style/TrailingCommaInArguments:
613
- Exclude:
614
- - 'lib/fontisan/converters/type1_converter.rb'
615
-
616
- # Offense count: 4
617
- # This cop supports safe autocorrection (--autocorrect).
618
- # Configuration parameters: EnforcedStyleForMultiline.
619
- # SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
620
- Style/TrailingCommaInArrayLiteral:
621
- Exclude:
622
- - 'spec/fontisan/converters/type1_property_spec.rb'
623
- - 'spec/fontisan/type1/seac_expander_spec.rb'
624
-
625
- # Offense count: 8
485
+ # Offense count: 7
626
486
  # This cop supports safe autocorrection (--autocorrect).
627
- # Configuration parameters: EnforcedStyleForMultiline.
628
- # SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
629
- Style/TrailingCommaInHashLiteral:
487
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
488
+ # SupportedStyles: single_quotes, double_quotes
489
+ Style/StringLiterals:
630
490
  Exclude:
631
- - 'lib/fontisan/type1/seac_expander.rb'
632
- - 'spec/fontisan/type1/seac_expander_spec.rb'
491
+ - 'docs/node_modules/speakingurl/lib/speakingurl-rails.rb'
492
+ - 'docs/node_modules/speakingurl/speakingurl-rails.gemspec'
data/Gemfile CHANGED
@@ -11,7 +11,6 @@ gem "get_process_mem", "~> 0.2"
11
11
  gem "bigdecimal"
12
12
  gem "openssl", "~> 3.0"
13
13
  # sys-proctable is required by get_process_mem on Windows
14
- gem "sys-proctable", platforms: %i[mswin mingw mswin64]
15
14
  gem "rake"
16
15
  gem "rspec"
17
16
  gem "rubocop"
@@ -19,3 +18,4 @@ gem "rubocop-performance"
19
18
  gem "rubocop-rake"
20
19
  gem "rubocop-rspec"
21
20
  gem "rubyzip"
21
+ gem "sys-proctable", platforms: %i[mswin mingw mswin64]
data/docs/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ # Dependencies
2
+ node_modules/
3
+
4
+ # Build output
5
+ .vitepress/dist/
6
+ .vitepress/cache/
7
+
8
+ # Logs
9
+ *.log
10
+ npm-debug.log*
11
+
12
+ # Editor
13
+ .vscode/
14
+ .idea/
15
+
16
+ # OS
17
+ .DS_Store