paperback 0.0.4 → 0.0.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 (61) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/tests.yml +46 -0
  3. data/.rubocop-disables.yml +26 -9
  4. data/CHANGELOG.md +7 -0
  5. data/README.md +4 -1
  6. data/lib/paperback/cli.rb +17 -0
  7. data/lib/paperback/document.rb +74 -11
  8. data/lib/paperback/preparer.rb +76 -21
  9. data/lib/paperback/version.rb +2 -1
  10. data/lib/paperback.rb +12 -0
  11. data/paperback.gemspec +10 -7
  12. data/sorbet/config +3 -0
  13. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  14. data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
  15. data/sorbet/rbi/gems/chunky_png@1.4.0.rbi +4498 -0
  16. data/sorbet/rbi/gems/coderay@1.1.3.rbi +3426 -0
  17. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1083 -0
  18. data/sorbet/rbi/gems/method_source@1.0.0.rbi +272 -0
  19. data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
  20. data/sorbet/rbi/gems/parallel@1.22.1.rbi +277 -0
  21. data/sorbet/rbi/gems/parser@3.2.0.0.rbi +6963 -0
  22. data/sorbet/rbi/gems/pdf-core@0.4.0.rbi +1682 -0
  23. data/sorbet/rbi/gems/prawn@1.3.0.rbi +5567 -0
  24. data/sorbet/rbi/gems/pry@0.14.1.rbi +9990 -0
  25. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +408 -0
  26. data/sorbet/rbi/gems/rake@13.0.6.rbi +3023 -0
  27. data/sorbet/rbi/gems/rbi@0.0.16.rbi +3008 -0
  28. data/sorbet/rbi/gems/regexp_parser@2.6.1.rbi +3481 -0
  29. data/sorbet/rbi/gems/rexml@3.2.5.rbi +4717 -0
  30. data/sorbet/rbi/gems/rqrcode@0.10.1.rbi +617 -0
  31. data/sorbet/rbi/gems/rspec-core@3.12.0.rbi +10791 -0
  32. data/sorbet/rbi/gems/rspec-expectations@3.12.1.rbi +8106 -0
  33. data/sorbet/rbi/gems/rspec-mocks@3.12.1.rbi +5305 -0
  34. data/sorbet/rbi/gems/rspec-support@3.12.0.rbi +1617 -0
  35. data/sorbet/rbi/gems/rspec@3.12.0.rbi +88 -0
  36. data/sorbet/rbi/gems/rubocop-ast@1.24.1.rbi +6617 -0
  37. data/sorbet/rbi/gems/rubocop@0.93.1.rbi +40848 -0
  38. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +1234 -0
  39. data/sorbet/rbi/gems/sixword@0.4.0.rbi +536 -0
  40. data/sorbet/rbi/gems/spoom@1.1.15.rbi +2383 -0
  41. data/sorbet/rbi/gems/subprocess@1.5.6.rbi +391 -0
  42. data/sorbet/rbi/gems/tapioca@0.10.5.rbi +3207 -0
  43. data/sorbet/rbi/gems/thor@1.2.1.rbi +3956 -0
  44. data/sorbet/rbi/gems/ttfunk@1.4.0.rbi +1951 -0
  45. data/sorbet/rbi/gems/unicode-display_width@1.8.0.rbi +40 -0
  46. data/sorbet/rbi/gems/unparser@0.6.7.rbi +4524 -0
  47. data/sorbet/rbi/gems/webrick@1.7.0.rbi +2555 -0
  48. data/sorbet/rbi/gems/yard-sorbet@0.8.0.rbi +441 -0
  49. data/sorbet/rbi/gems/yard@0.9.28.rbi +17816 -0
  50. data/sorbet/tapioca/config.yml +13 -0
  51. data/sorbet/tapioca/require.rb +4 -0
  52. data/spec/functional/paperback/cli_spec.rb +54 -25
  53. data/spec/spec_helper.rb +1 -0
  54. data/spec/unit/paperback_spec.rb +1 -0
  55. metadata +89 -13
  56. data/sample/aes.key +0 -1
  57. data/sample/aes.pdf +0 -14413
  58. data/sample/aes.pdf.passphrase.txt +0 -1
  59. data/sample/rsa2048.pdf +0 -106803
  60. data/sample/rsa2048.pdf.passphrase.txt +0 -1
  61. data/sample/rsa2048.pem +0 -27
@@ -0,0 +1,1951 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `ttfunk` gem.
5
+ # Please instead update this file by running `bin/tapioca gem ttfunk`.
6
+
7
+ # source://ttfunk//lib/ttfunk/directory.rb#1
8
+ module TTFunk; end
9
+
10
+ # source://ttfunk//lib/ttfunk/directory.rb#2
11
+ class TTFunk::Directory
12
+ # @return [Directory] a new instance of Directory
13
+ #
14
+ # source://ttfunk//lib/ttfunk/directory.rb#6
15
+ def initialize(io); end
16
+
17
+ # Returns the value of attribute scaler_type.
18
+ #
19
+ # source://ttfunk//lib/ttfunk/directory.rb#4
20
+ def scaler_type; end
21
+
22
+ # Returns the value of attribute tables.
23
+ #
24
+ # source://ttfunk//lib/ttfunk/directory.rb#3
25
+ def tables; end
26
+ end
27
+
28
+ # source://ttfunk//lib/ttfunk/encoding/mac_roman.rb#2
29
+ module TTFunk::Encoding; end
30
+
31
+ # source://ttfunk//lib/ttfunk/encoding/mac_roman.rb#3
32
+ class TTFunk::Encoding::MacRoman
33
+ class << self
34
+ # @return [Boolean]
35
+ #
36
+ # source://ttfunk//lib/ttfunk/encoding/mac_roman.rb#61
37
+ def covers?(character); end
38
+
39
+ # source://ttfunk//lib/ttfunk/encoding/mac_roman.rb#77
40
+ def from_unicode(string); end
41
+
42
+ # source://ttfunk//lib/ttfunk/encoding/mac_roman.rb#85
43
+ def from_unicode_codepoints(array); end
44
+
45
+ # source://ttfunk//lib/ttfunk/encoding/mac_roman.rb#73
46
+ def from_utf8(string); end
47
+
48
+ # source://ttfunk//lib/ttfunk/encoding/mac_roman.rb#69
49
+ def to_unicode(string); end
50
+
51
+ # source://ttfunk//lib/ttfunk/encoding/mac_roman.rb#81
52
+ def to_unicode_codepoints(array); end
53
+
54
+ # source://ttfunk//lib/ttfunk/encoding/mac_roman.rb#65
55
+ def to_utf8(string); end
56
+ end
57
+ end
58
+
59
+ # source://ttfunk//lib/ttfunk/encoding/mac_roman.rb#35
60
+ TTFunk::Encoding::MacRoman::FROM_UNICODE = T.let(T.unsafe(nil), Hash)
61
+
62
+ # Maps MacRoman codes to their corresponding index in the Postscript glyph
63
+ # table (see TTFunk::Table::Post::Format10). If any entry in this array is a string,
64
+ # it is a postscript glyph that is not in the standard list, and which should be
65
+ # emitted specially in the TTF postscript table ('post', see format 2).
66
+ #
67
+ # source://ttfunk//lib/ttfunk/encoding/mac_roman.rb#42
68
+ TTFunk::Encoding::MacRoman::POSTSCRIPT_GLYPH_MAPPING = T.let(T.unsafe(nil), Array)
69
+
70
+ # XXX: Ruby 1.9.2 on OS X Lion segfaults on range1.zip(range2)
71
+ #
72
+ # source://ttfunk//lib/ttfunk/encoding/mac_roman.rb#5
73
+ TTFunk::Encoding::MacRoman::TO_UNICODE = T.let(T.unsafe(nil), Hash)
74
+
75
+ # source://ttfunk//lib/ttfunk/encoding/windows_1252.rb#3
76
+ class TTFunk::Encoding::Windows1252
77
+ class << self
78
+ # @return [Boolean]
79
+ #
80
+ # source://ttfunk//lib/ttfunk/encoding/windows_1252.rb#41
81
+ def covers?(character); end
82
+
83
+ # source://ttfunk//lib/ttfunk/encoding/windows_1252.rb#57
84
+ def from_unicode(string); end
85
+
86
+ # source://ttfunk//lib/ttfunk/encoding/windows_1252.rb#65
87
+ def from_unicode_codepoints(array); end
88
+
89
+ # source://ttfunk//lib/ttfunk/encoding/windows_1252.rb#53
90
+ def from_utf8(string); end
91
+
92
+ # source://ttfunk//lib/ttfunk/encoding/windows_1252.rb#49
93
+ def to_unicode(string); end
94
+
95
+ # source://ttfunk//lib/ttfunk/encoding/windows_1252.rb#61
96
+ def to_unicode_codepoints(array); end
97
+
98
+ # source://ttfunk//lib/ttfunk/encoding/windows_1252.rb#45
99
+ def to_utf8(string); end
100
+ end
101
+ end
102
+
103
+ # source://ttfunk//lib/ttfunk/encoding/windows_1252.rb#15
104
+ TTFunk::Encoding::Windows1252::FROM_UNICODE = T.let(T.unsafe(nil), Hash)
105
+
106
+ # Maps Windows-1252 codes to their corresponding index in the Postscript glyph
107
+ # table (see TTFunk::Table::Post::Format10). If any entry in this array is a string,
108
+ # it is a postscript glyph that is not in the standard list, and which should be
109
+ # emitted specially in the TTF postscript table ('post', see format 2).
110
+ #
111
+ # source://ttfunk//lib/ttfunk/encoding/windows_1252.rb#22
112
+ TTFunk::Encoding::Windows1252::POSTSCRIPT_GLYPH_MAPPING = T.let(T.unsafe(nil), Array)
113
+
114
+ # XXX: Ruby 1.9.2 on OS X Lion segfaults on range1.zip(range2)
115
+ #
116
+ # source://ttfunk//lib/ttfunk/encoding/windows_1252.rb#5
117
+ TTFunk::Encoding::Windows1252::TO_UNICODE = T.let(T.unsafe(nil), Hash)
118
+
119
+ # source://ttfunk//lib/ttfunk.rb#8
120
+ class TTFunk::File
121
+ # @return [File] a new instance of File
122
+ #
123
+ # source://ttfunk//lib/ttfunk.rb#39
124
+ def initialize(contents); end
125
+
126
+ # source://ttfunk//lib/ttfunk.rb#45
127
+ def ascent; end
128
+
129
+ # source://ttfunk//lib/ttfunk.rb#57
130
+ def bbox; end
131
+
132
+ # source://ttfunk//lib/ttfunk.rb#70
133
+ def cmap; end
134
+
135
+ # Returns the value of attribute contents.
136
+ #
137
+ # source://ttfunk//lib/ttfunk.rb#9
138
+ def contents; end
139
+
140
+ # source://ttfunk//lib/ttfunk.rb#49
141
+ def descent; end
142
+
143
+ # Returns the value of attribute directory.
144
+ #
145
+ # source://ttfunk//lib/ttfunk.rb#10
146
+ def directory; end
147
+
148
+ # source://ttfunk//lib/ttfunk.rb#62
149
+ def directory_info(tag); end
150
+
151
+ # source://ttfunk//lib/ttfunk.rb#102
152
+ def glyph_locations; end
153
+
154
+ # source://ttfunk//lib/ttfunk.rb#106
155
+ def glyph_outlines; end
156
+
157
+ # source://ttfunk//lib/ttfunk.rb#66
158
+ def header; end
159
+
160
+ # source://ttfunk//lib/ttfunk.rb#74
161
+ def horizontal_header; end
162
+
163
+ # source://ttfunk//lib/ttfunk.rb#78
164
+ def horizontal_metrics; end
165
+
166
+ # source://ttfunk//lib/ttfunk.rb#86
167
+ def kerning; end
168
+
169
+ # source://ttfunk//lib/ttfunk.rb#53
170
+ def line_gap; end
171
+
172
+ # source://ttfunk//lib/ttfunk.rb#82
173
+ def maximum_profile; end
174
+
175
+ # source://ttfunk//lib/ttfunk.rb#90
176
+ def name; end
177
+
178
+ # source://ttfunk//lib/ttfunk.rb#94
179
+ def os2; end
180
+
181
+ # source://ttfunk//lib/ttfunk.rb#98
182
+ def postscript; end
183
+
184
+ # source://ttfunk//lib/ttfunk.rb#110
185
+ def sbix; end
186
+
187
+ class << self
188
+ # source://ttfunk//lib/ttfunk.rb#16
189
+ def from_dfont(file, which = T.unsafe(nil)); end
190
+
191
+ # source://ttfunk//lib/ttfunk.rb#12
192
+ def open(io_or_path); end
193
+
194
+ # @raise [ArgumentError]
195
+ #
196
+ # source://ttfunk//lib/ttfunk.rb#20
197
+ def verify_and_open(io_or_path); end
198
+ end
199
+ end
200
+
201
+ # source://ttfunk//lib/ttfunk/reader.rb#2
202
+ module TTFunk::Reader
203
+ private
204
+
205
+ # For debugging purposes
206
+ #
207
+ # source://ttfunk//lib/ttfunk/reader.rb#29
208
+ def hexdump(string); end
209
+
210
+ # source://ttfunk//lib/ttfunk/reader.rb#5
211
+ def io; end
212
+
213
+ # source://ttfunk//lib/ttfunk/reader.rb#21
214
+ def parse_from(position); end
215
+
216
+ # source://ttfunk//lib/ttfunk/reader.rb#9
217
+ def read(bytes, format); end
218
+
219
+ # source://ttfunk//lib/ttfunk/reader.rb#13
220
+ def read_signed(count); end
221
+
222
+ # source://ttfunk//lib/ttfunk/reader.rb#17
223
+ def to_signed(n); end
224
+ end
225
+
226
+ # source://ttfunk//lib/ttfunk/resource_file.rb#2
227
+ class TTFunk::ResourceFile
228
+ # @return [ResourceFile] a new instance of ResourceFile
229
+ #
230
+ # source://ttfunk//lib/ttfunk/resource_file.rb#12
231
+ def initialize(io); end
232
+
233
+ # source://ttfunk//lib/ttfunk/resource_file.rb#53
234
+ def [](type, index = T.unsafe(nil)); end
235
+
236
+ # Returns the value of attribute map.
237
+ #
238
+ # source://ttfunk//lib/ttfunk/resource_file.rb#3
239
+ def map; end
240
+
241
+ # source://ttfunk//lib/ttfunk/resource_file.rb#65
242
+ def resources_for(type); end
243
+
244
+ private
245
+
246
+ # source://ttfunk//lib/ttfunk/resource_file.rb#71
247
+ def parse_from(offset); end
248
+
249
+ class << self
250
+ # source://ttfunk//lib/ttfunk/resource_file.rb#5
251
+ def open(path); end
252
+ end
253
+ end
254
+
255
+ # source://ttfunk//lib/ttfunk/subset/base.rb#14
256
+ module TTFunk::Subset
257
+ class << self
258
+ # source://ttfunk//lib/ttfunk/subset.rb#8
259
+ def for(original, encoding); end
260
+ end
261
+ end
262
+
263
+ # source://ttfunk//lib/ttfunk/subset/base.rb#15
264
+ class TTFunk::Subset::Base
265
+ # @return [Base] a new instance of Base
266
+ #
267
+ # source://ttfunk//lib/ttfunk/subset/base.rb#18
268
+ def initialize(original); end
269
+
270
+ # source://ttfunk//lib/ttfunk/subset/base.rb#30
271
+ def encode(options = T.unsafe(nil)); end
272
+
273
+ # Returns the value of attribute original.
274
+ #
275
+ # source://ttfunk//lib/ttfunk/subset/base.rb#16
276
+ def original; end
277
+
278
+ # source://ttfunk//lib/ttfunk/subset/base.rb#26
279
+ def to_unicode_map; end
280
+
281
+ # @return [Boolean]
282
+ #
283
+ # source://ttfunk//lib/ttfunk/subset/base.rb#22
284
+ def unicode?; end
285
+
286
+ private
287
+
288
+ # source://ttfunk//lib/ttfunk/subset/base.rb#126
289
+ def checksum(data); end
290
+
291
+ # source://ttfunk//lib/ttfunk/subset/base.rb#131
292
+ def collect_glyphs(glyph_ids); end
293
+
294
+ # source://ttfunk//lib/ttfunk/subset/base.rb#122
295
+ def unicode_cmap; end
296
+ end
297
+
298
+ # source://ttfunk//lib/ttfunk/subset/mac_roman.rb#8
299
+ class TTFunk::Subset::MacRoman < ::TTFunk::Subset::Base
300
+ # @return [MacRoman] a new instance of MacRoman
301
+ #
302
+ # source://ttfunk//lib/ttfunk/subset/mac_roman.rb#9
303
+ def initialize(original); end
304
+
305
+ # @return [Boolean]
306
+ #
307
+ # source://ttfunk//lib/ttfunk/subset/mac_roman.rb#22
308
+ def covers?(character); end
309
+
310
+ # source://ttfunk//lib/ttfunk/subset/mac_roman.rb#31
311
+ def from_unicode(character); end
312
+
313
+ # @return [Boolean]
314
+ #
315
+ # source://ttfunk//lib/ttfunk/subset/mac_roman.rb#26
316
+ def includes?(character); end
317
+
318
+ # source://ttfunk//lib/ttfunk/subset/mac_roman.rb#14
319
+ def to_unicode_map; end
320
+
321
+ # source://ttfunk//lib/ttfunk/subset/mac_roman.rb#18
322
+ def use(character); end
323
+
324
+ protected
325
+
326
+ # source://ttfunk//lib/ttfunk/subset/mac_roman.rb#37
327
+ def new_cmap_table(options); end
328
+
329
+ # source://ttfunk//lib/ttfunk/subset/mac_roman.rb#46
330
+ def original_glyph_ids; end
331
+ end
332
+
333
+ # source://ttfunk//lib/ttfunk/subset/unicode.rb#6
334
+ class TTFunk::Subset::Unicode < ::TTFunk::Subset::Base
335
+ # @return [Unicode] a new instance of Unicode
336
+ #
337
+ # source://ttfunk//lib/ttfunk/subset/unicode.rb#7
338
+ def initialize(original); end
339
+
340
+ # @return [Boolean]
341
+ #
342
+ # source://ttfunk//lib/ttfunk/subset/unicode.rb#24
343
+ def covers?(character); end
344
+
345
+ # source://ttfunk//lib/ttfunk/subset/unicode.rb#32
346
+ def from_unicode(character); end
347
+
348
+ # @return [Boolean]
349
+ #
350
+ # source://ttfunk//lib/ttfunk/subset/unicode.rb#28
351
+ def includes?(character); end
352
+
353
+ # source://ttfunk//lib/ttfunk/subset/unicode.rb#16
354
+ def to_unicode_map; end
355
+
356
+ # @return [Boolean]
357
+ #
358
+ # source://ttfunk//lib/ttfunk/subset/unicode.rb#12
359
+ def unicode?; end
360
+
361
+ # source://ttfunk//lib/ttfunk/subset/unicode.rb#20
362
+ def use(character); end
363
+
364
+ protected
365
+
366
+ # source://ttfunk//lib/ttfunk/subset/unicode.rb#38
367
+ def new_cmap_table(options); end
368
+
369
+ # source://ttfunk//lib/ttfunk/subset/unicode.rb#43
370
+ def original_glyph_ids; end
371
+ end
372
+
373
+ # source://ttfunk//lib/ttfunk/subset/unicode_8bit.rb#6
374
+ class TTFunk::Subset::Unicode8Bit < ::TTFunk::Subset::Base
375
+ # @return [Unicode8Bit] a new instance of Unicode8Bit
376
+ #
377
+ # source://ttfunk//lib/ttfunk/subset/unicode_8bit.rb#7
378
+ def initialize(original); end
379
+
380
+ # @return [Boolean]
381
+ #
382
+ # source://ttfunk//lib/ttfunk/subset/unicode_8bit.rb#30
383
+ def covers?(character); end
384
+
385
+ # source://ttfunk//lib/ttfunk/subset/unicode_8bit.rb#38
386
+ def from_unicode(character); end
387
+
388
+ # @return [Boolean]
389
+ #
390
+ # source://ttfunk//lib/ttfunk/subset/unicode_8bit.rb#34
391
+ def includes?(character); end
392
+
393
+ # source://ttfunk//lib/ttfunk/subset/unicode_8bit.rb#18
394
+ def to_unicode_map; end
395
+
396
+ # @return [Boolean]
397
+ #
398
+ # source://ttfunk//lib/ttfunk/subset/unicode_8bit.rb#14
399
+ def unicode?; end
400
+
401
+ # source://ttfunk//lib/ttfunk/subset/unicode_8bit.rb#22
402
+ def use(character); end
403
+
404
+ protected
405
+
406
+ # source://ttfunk//lib/ttfunk/subset/unicode_8bit.rb#44
407
+ def new_cmap_table(options); end
408
+
409
+ # source://ttfunk//lib/ttfunk/subset/unicode_8bit.rb#58
410
+ def original_glyph_ids; end
411
+ end
412
+
413
+ # source://ttfunk//lib/ttfunk/subset/windows_1252.rb#8
414
+ class TTFunk::Subset::Windows1252 < ::TTFunk::Subset::Base
415
+ # @return [Windows1252] a new instance of Windows1252
416
+ #
417
+ # source://ttfunk//lib/ttfunk/subset/windows_1252.rb#9
418
+ def initialize(original); end
419
+
420
+ # @return [Boolean]
421
+ #
422
+ # source://ttfunk//lib/ttfunk/subset/windows_1252.rb#22
423
+ def covers?(character); end
424
+
425
+ # source://ttfunk//lib/ttfunk/subset/windows_1252.rb#31
426
+ def from_unicode(character); end
427
+
428
+ # @return [Boolean]
429
+ #
430
+ # source://ttfunk//lib/ttfunk/subset/windows_1252.rb#26
431
+ def includes?(character); end
432
+
433
+ # source://ttfunk//lib/ttfunk/subset/windows_1252.rb#14
434
+ def to_unicode_map; end
435
+
436
+ # source://ttfunk//lib/ttfunk/subset/windows_1252.rb#18
437
+ def use(character); end
438
+
439
+ protected
440
+
441
+ # source://ttfunk//lib/ttfunk/subset/windows_1252.rb#37
442
+ def new_cmap_table(options); end
443
+
444
+ # source://ttfunk//lib/ttfunk/subset/windows_1252.rb#51
445
+ def original_glyph_ids; end
446
+ end
447
+
448
+ # source://ttfunk//lib/ttfunk/subset_collection.rb#4
449
+ class TTFunk::SubsetCollection
450
+ # @return [SubsetCollection] a new instance of SubsetCollection
451
+ #
452
+ # source://ttfunk//lib/ttfunk/subset_collection.rb#5
453
+ def initialize(original); end
454
+
455
+ # source://ttfunk//lib/ttfunk/subset_collection.rb#10
456
+ def [](subset); end
457
+
458
+ # +characters+ should be an array of UTF-16 characters. Returns
459
+ # an array of subset chunks, where each chunk is another array of
460
+ # two elements. The first element is the subset number, and the
461
+ # second element is the string of characters to render with that
462
+ # font subset. The strings will be encoded for their subset font,
463
+ # and so may not look (in the raw) like what was passed in, but
464
+ # they will render correctly with the indicated subset font.
465
+ #
466
+ # source://ttfunk//lib/ttfunk/subset_collection.rb#40
467
+ def encode(characters); end
468
+
469
+ # +characters+ should be an array of UTF-16 characters
470
+ #
471
+ # source://ttfunk//lib/ttfunk/subset_collection.rb#15
472
+ def use(characters); end
473
+ end
474
+
475
+ # source://ttfunk//lib/ttfunk/table/cmap.rb#2
476
+ class TTFunk::Table
477
+ include ::TTFunk::Reader
478
+
479
+ # @return [Table] a new instance of Table
480
+ #
481
+ # source://ttfunk//lib/ttfunk/table.rb#11
482
+ def initialize(file); end
483
+
484
+ # @return [Boolean]
485
+ #
486
+ # source://ttfunk//lib/ttfunk/table.rb#24
487
+ def exists?; end
488
+
489
+ # Returns the value of attribute file.
490
+ #
491
+ # source://ttfunk//lib/ttfunk/table.rb#7
492
+ def file; end
493
+
494
+ # Returns the value of attribute length.
495
+ #
496
+ # source://ttfunk//lib/ttfunk/table.rb#9
497
+ def length; end
498
+
499
+ # Returns the value of attribute offset.
500
+ #
501
+ # source://ttfunk//lib/ttfunk/table.rb#8
502
+ def offset; end
503
+
504
+ # source://ttfunk//lib/ttfunk/table.rb#28
505
+ def raw; end
506
+
507
+ # source://ttfunk//lib/ttfunk/table.rb#36
508
+ def tag; end
509
+
510
+ private
511
+
512
+ # source://ttfunk//lib/ttfunk/table.rb#42
513
+ def parse!; end
514
+ end
515
+
516
+ # source://ttfunk//lib/ttfunk/table/cmap.rb#3
517
+ class TTFunk::Table::Cmap < ::TTFunk::Table
518
+ # Returns the value of attribute tables.
519
+ #
520
+ # source://ttfunk//lib/ttfunk/table/cmap.rb#5
521
+ def tables; end
522
+
523
+ # source://ttfunk//lib/ttfunk/table/cmap.rb#15
524
+ def unicode; end
525
+
526
+ # Returns the value of attribute version.
527
+ #
528
+ # source://ttfunk//lib/ttfunk/table/cmap.rb#4
529
+ def version; end
530
+
531
+ private
532
+
533
+ # source://ttfunk//lib/ttfunk/table/cmap.rb#24
534
+ def parse!; end
535
+
536
+ class << self
537
+ # source://ttfunk//lib/ttfunk/table/cmap.rb#7
538
+ def encode(charmap, encoding); end
539
+ end
540
+ end
541
+
542
+ # source://ttfunk//lib/ttfunk/table/cmap/format00.rb#8
543
+ module TTFunk::Table::Cmap::Format00
544
+ # source://ttfunk//lib/ttfunk/table/cmap/format00.rb#36
545
+ def [](code); end
546
+
547
+ # Returns the value of attribute code_map.
548
+ #
549
+ # source://ttfunk//lib/ttfunk/table/cmap/format00.rb#10
550
+ def code_map; end
551
+
552
+ # Returns the value of attribute language.
553
+ #
554
+ # source://ttfunk//lib/ttfunk/table/cmap/format00.rb#9
555
+ def language; end
556
+
557
+ # @return [Boolean]
558
+ #
559
+ # source://ttfunk//lib/ttfunk/table/cmap/format00.rb#40
560
+ def supported?; end
561
+
562
+ private
563
+
564
+ # source://ttfunk//lib/ttfunk/table/cmap/format00.rb#46
565
+ def parse_cmap!; end
566
+
567
+ class << self
568
+ # Expects a hash mapping character codes to glyph ids (where the
569
+ # glyph ids are from the original font). Returns a hash including
570
+ # a new map (:charmap) that maps the characters in charmap to a
571
+ # another hash containing both the old (:old) and new (:new) glyph
572
+ # ids. The returned hash also includes a :subtable key, which contains
573
+ # the encoded subtable for the given charmap.
574
+ #
575
+ # source://ttfunk//lib/ttfunk/table/cmap/format00.rb#18
576
+ def encode(charmap); end
577
+ end
578
+ end
579
+
580
+ # source://ttfunk//lib/ttfunk/table/cmap/format04.rb#5
581
+ module TTFunk::Table::Cmap::Format04
582
+ # source://ttfunk//lib/ttfunk/table/cmap/format04.rb#82
583
+ def [](code); end
584
+
585
+ # Returns the value of attribute code_map.
586
+ #
587
+ # source://ttfunk//lib/ttfunk/table/cmap/format04.rb#7
588
+ def code_map; end
589
+
590
+ # Returns the value of attribute language.
591
+ #
592
+ # source://ttfunk//lib/ttfunk/table/cmap/format04.rb#6
593
+ def language; end
594
+
595
+ # @return [Boolean]
596
+ #
597
+ # source://ttfunk//lib/ttfunk/table/cmap/format04.rb#86
598
+ def supported?; end
599
+
600
+ private
601
+
602
+ # source://ttfunk//lib/ttfunk/table/cmap/format04.rb#92
603
+ def parse_cmap!; end
604
+
605
+ class << self
606
+ # Expects a hash mapping character codes to glyph ids (where the
607
+ # glyph ids are from the original font). Returns a hash including
608
+ # a new map (:charmap) that maps the characters in charmap to a
609
+ # another hash containing both the old (:old) and new (:new) glyph
610
+ # ids. The returned hash also includes a :subtable key, which contains
611
+ # the encoded subtable for the given charmap.
612
+ #
613
+ # source://ttfunk//lib/ttfunk/table/cmap/format04.rb#15
614
+ def encode(charmap); end
615
+ end
616
+ end
617
+
618
+ # source://ttfunk//lib/ttfunk/table/cmap/format06.rb#5
619
+ module TTFunk::Table::Cmap::Format06
620
+ # source://ttfunk//lib/ttfunk/table/cmap/format06.rb#30
621
+ def [](code); end
622
+
623
+ # Returns the value of attribute code_map.
624
+ #
625
+ # source://ttfunk//lib/ttfunk/table/cmap/format06.rb#7
626
+ def code_map; end
627
+
628
+ # Returns the value of attribute language.
629
+ #
630
+ # source://ttfunk//lib/ttfunk/table/cmap/format06.rb#6
631
+ def language; end
632
+
633
+ # @return [Boolean]
634
+ #
635
+ # source://ttfunk//lib/ttfunk/table/cmap/format06.rb#34
636
+ def supported?; end
637
+
638
+ private
639
+
640
+ # source://ttfunk//lib/ttfunk/table/cmap/format06.rb#39
641
+ def parse_cmap!; end
642
+
643
+ class << self
644
+ # source://ttfunk//lib/ttfunk/table/cmap/format06.rb#9
645
+ def encode(charmap); end
646
+ end
647
+ end
648
+
649
+ # source://ttfunk//lib/ttfunk/table/cmap/format10.rb#5
650
+ module TTFunk::Table::Cmap::Format10
651
+ # source://ttfunk//lib/ttfunk/table/cmap/format10.rb#30
652
+ def [](code); end
653
+
654
+ # Returns the value of attribute code_map.
655
+ #
656
+ # source://ttfunk//lib/ttfunk/table/cmap/format10.rb#7
657
+ def code_map; end
658
+
659
+ # Returns the value of attribute language.
660
+ #
661
+ # source://ttfunk//lib/ttfunk/table/cmap/format10.rb#6
662
+ def language; end
663
+
664
+ # @return [Boolean]
665
+ #
666
+ # source://ttfunk//lib/ttfunk/table/cmap/format10.rb#34
667
+ def supported?; end
668
+
669
+ private
670
+
671
+ # @raise [NotImplementedError]
672
+ #
673
+ # source://ttfunk//lib/ttfunk/table/cmap/format10.rb#39
674
+ def parse_cmap!; end
675
+
676
+ class << self
677
+ # source://ttfunk//lib/ttfunk/table/cmap/format10.rb#9
678
+ def encode(charmap); end
679
+ end
680
+ end
681
+
682
+ # source://ttfunk//lib/ttfunk/table/cmap/format12.rb#5
683
+ module TTFunk::Table::Cmap::Format12
684
+ # source://ttfunk//lib/ttfunk/table/cmap/format12.rb#41
685
+ def [](code); end
686
+
687
+ # Returns the value of attribute code_map.
688
+ #
689
+ # source://ttfunk//lib/ttfunk/table/cmap/format12.rb#7
690
+ def code_map; end
691
+
692
+ # Returns the value of attribute language.
693
+ #
694
+ # source://ttfunk//lib/ttfunk/table/cmap/format12.rb#6
695
+ def language; end
696
+
697
+ # @return [Boolean]
698
+ #
699
+ # source://ttfunk//lib/ttfunk/table/cmap/format12.rb#45
700
+ def supported?; end
701
+
702
+ private
703
+
704
+ # @raise [NotImplementedError]
705
+ #
706
+ # source://ttfunk//lib/ttfunk/table/cmap/format12.rb#50
707
+ def parse_cmap!; end
708
+
709
+ class << self
710
+ # source://ttfunk//lib/ttfunk/table/cmap/format12.rb#9
711
+ def encode(charmap); end
712
+ end
713
+ end
714
+
715
+ # source://ttfunk//lib/ttfunk/table/cmap/subtable.rb#6
716
+ class TTFunk::Table::Cmap::Subtable
717
+ include ::TTFunk::Reader
718
+
719
+ # @return [Subtable] a new instance of Subtable
720
+ #
721
+ # source://ttfunk//lib/ttfunk/table/cmap/subtable.rb#41
722
+ def initialize(file, table_start); end
723
+
724
+ # @raise [NotImplementedError]
725
+ #
726
+ # source://ttfunk//lib/ttfunk/table/cmap/subtable.rb#70
727
+ def [](code); end
728
+
729
+ # Returns the value of attribute encoding_id.
730
+ #
731
+ # source://ttfunk//lib/ttfunk/table/cmap/subtable.rb#10
732
+ def encoding_id; end
733
+
734
+ # Returns the value of attribute format.
735
+ #
736
+ # source://ttfunk//lib/ttfunk/table/cmap/subtable.rb#11
737
+ def format; end
738
+
739
+ # Returns the value of attribute platform_id.
740
+ #
741
+ # source://ttfunk//lib/ttfunk/table/cmap/subtable.rb#9
742
+ def platform_id; end
743
+
744
+ # @return [Boolean]
745
+ #
746
+ # source://ttfunk//lib/ttfunk/table/cmap/subtable.rb#66
747
+ def supported?; end
748
+
749
+ # @return [Boolean]
750
+ #
751
+ # source://ttfunk//lib/ttfunk/table/cmap/subtable.rb#61
752
+ def unicode?; end
753
+
754
+ private
755
+
756
+ # source://ttfunk//lib/ttfunk/table/cmap/subtable.rb#76
757
+ def parse_cmap!; end
758
+
759
+ class << self
760
+ # source://ttfunk//lib/ttfunk/table/cmap/subtable.rb#20
761
+ def encode(charmap, encoding); end
762
+ end
763
+ end
764
+
765
+ # source://ttfunk//lib/ttfunk/table/cmap/subtable.rb#13
766
+ TTFunk::Table::Cmap::Subtable::ENCODING_MAPPINGS = T.let(T.unsafe(nil), Hash)
767
+
768
+ # source://ttfunk//lib/ttfunk/table/glyf.rb#13
769
+ class TTFunk::Table::Glyf < ::TTFunk::Table
770
+ # source://ttfunk//lib/ttfunk/table/glyf.rb#29
771
+ def for(glyph_id); end
772
+
773
+ private
774
+
775
+ # source://ttfunk//lib/ttfunk/table/glyf.rb#54
776
+ def parse!; end
777
+
778
+ class << self
779
+ # Accepts a hash mapping (old) glyph-ids to glyph objects, and a hash
780
+ # mapping old glyph-ids to new glyph-ids.
781
+ #
782
+ # Returns a hash containing:
783
+ #
784
+ # * :table - a string representing the encoded 'glyf' table containing
785
+ # the given glyphs.
786
+ # * :offsets - an array of offsets for each glyph
787
+ #
788
+ # source://ttfunk//lib/ttfunk/table/glyf.rb#14
789
+ def encode(glyphs, new2old, old2new); end
790
+ end
791
+ end
792
+
793
+ # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#6
794
+ class TTFunk::Table::Glyf::Compound
795
+ include ::TTFunk::Reader
796
+
797
+ # @return [Compound] a new instance of Compound
798
+ #
799
+ # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#22
800
+ def initialize(raw, x_min, y_min, x_max, y_max); end
801
+
802
+ # @return [Boolean]
803
+ #
804
+ # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#63
805
+ def compound?; end
806
+
807
+ # Returns the value of attribute glyph_ids.
808
+ #
809
+ # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#18
810
+ def glyph_ids; end
811
+
812
+ # Returns the value of attribute raw.
813
+ #
814
+ # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#16
815
+ def raw; end
816
+
817
+ # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#67
818
+ def recode(mapping); end
819
+
820
+ # Returns the value of attribute x_max.
821
+ #
822
+ # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#17
823
+ def x_max; end
824
+
825
+ # Returns the value of attribute x_min.
826
+ #
827
+ # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#17
828
+ def x_min; end
829
+
830
+ # Returns the value of attribute y_max.
831
+ #
832
+ # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#17
833
+ def y_max; end
834
+
835
+ # Returns the value of attribute y_min.
836
+ #
837
+ # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#17
838
+ def y_min; end
839
+ end
840
+
841
+ # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#9
842
+ TTFunk::Table::Glyf::Compound::ARG_1_AND_2_ARE_WORDS = T.let(T.unsafe(nil), Integer)
843
+
844
+ # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#20
845
+ class TTFunk::Table::Glyf::Compound::Component < ::Struct
846
+ # Returns the value of attribute arg1
847
+ #
848
+ # @return [Object] the current value of arg1
849
+ def arg1; end
850
+
851
+ # Sets the attribute arg1
852
+ #
853
+ # @param value [Object] the value to set the attribute arg1 to.
854
+ # @return [Object] the newly set value
855
+ def arg1=(_); end
856
+
857
+ # Returns the value of attribute arg2
858
+ #
859
+ # @return [Object] the current value of arg2
860
+ def arg2; end
861
+
862
+ # Sets the attribute arg2
863
+ #
864
+ # @param value [Object] the value to set the attribute arg2 to.
865
+ # @return [Object] the newly set value
866
+ def arg2=(_); end
867
+
868
+ # Returns the value of attribute flags
869
+ #
870
+ # @return [Object] the current value of flags
871
+ def flags; end
872
+
873
+ # Sets the attribute flags
874
+ #
875
+ # @param value [Object] the value to set the attribute flags to.
876
+ # @return [Object] the newly set value
877
+ def flags=(_); end
878
+
879
+ # Returns the value of attribute glyph_index
880
+ #
881
+ # @return [Object] the current value of glyph_index
882
+ def glyph_index; end
883
+
884
+ # Sets the attribute glyph_index
885
+ #
886
+ # @param value [Object] the value to set the attribute glyph_index to.
887
+ # @return [Object] the newly set value
888
+ def glyph_index=(_); end
889
+
890
+ # Returns the value of attribute transform
891
+ #
892
+ # @return [Object] the current value of transform
893
+ def transform; end
894
+
895
+ # Sets the attribute transform
896
+ #
897
+ # @param value [Object] the value to set the attribute transform to.
898
+ # @return [Object] the newly set value
899
+ def transform=(_); end
900
+
901
+ class << self
902
+ def [](*_arg0); end
903
+ def inspect; end
904
+ def keyword_init?; end
905
+ def members; end
906
+ def new(*_arg0); end
907
+ end
908
+ end
909
+
910
+ # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#11
911
+ TTFunk::Table::Glyf::Compound::MORE_COMPONENTS = T.let(T.unsafe(nil), Integer)
912
+
913
+ # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#12
914
+ TTFunk::Table::Glyf::Compound::WE_HAVE_AN_X_AND_Y_SCALE = T.let(T.unsafe(nil), Integer)
915
+
916
+ # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#10
917
+ TTFunk::Table::Glyf::Compound::WE_HAVE_A_SCALE = T.let(T.unsafe(nil), Integer)
918
+
919
+ # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#13
920
+ TTFunk::Table::Glyf::Compound::WE_HAVE_A_TWO_BY_TWO = T.let(T.unsafe(nil), Integer)
921
+
922
+ # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#14
923
+ TTFunk::Table::Glyf::Compound::WE_HAVE_INSTRUCTIONS = T.let(T.unsafe(nil), Integer)
924
+
925
+ # source://ttfunk//lib/ttfunk/table/glyf/simple.rb#6
926
+ class TTFunk::Table::Glyf::Simple
927
+ # @return [Simple] a new instance of Simple
928
+ #
929
+ # source://ttfunk//lib/ttfunk/table/glyf/simple.rb#11
930
+ def initialize(raw, number_of_contours, x_min, y_min, x_max, y_max); end
931
+
932
+ # @return [Boolean]
933
+ #
934
+ # source://ttfunk//lib/ttfunk/table/glyf/simple.rb#26
935
+ def compound?; end
936
+
937
+ # Returns the value of attribute number_of_contours.
938
+ #
939
+ # source://ttfunk//lib/ttfunk/table/glyf/simple.rb#8
940
+ def number_of_contours; end
941
+
942
+ # Returns the value of attribute raw.
943
+ #
944
+ # source://ttfunk//lib/ttfunk/table/glyf/simple.rb#7
945
+ def raw; end
946
+
947
+ # source://ttfunk//lib/ttfunk/table/glyf/simple.rb#30
948
+ def recode(mapping); end
949
+
950
+ # Returns the value of attribute x_max.
951
+ #
952
+ # source://ttfunk//lib/ttfunk/table/glyf/simple.rb#9
953
+ def x_max; end
954
+
955
+ # Returns the value of attribute x_min.
956
+ #
957
+ # source://ttfunk//lib/ttfunk/table/glyf/simple.rb#9
958
+ def x_min; end
959
+
960
+ # Returns the value of attribute y_max.
961
+ #
962
+ # source://ttfunk//lib/ttfunk/table/glyf/simple.rb#9
963
+ def y_max; end
964
+
965
+ # Returns the value of attribute y_min.
966
+ #
967
+ # source://ttfunk//lib/ttfunk/table/glyf/simple.rb#9
968
+ def y_min; end
969
+ end
970
+
971
+ # source://ttfunk//lib/ttfunk/table/head.rb#5
972
+ class TTFunk::Table::Head < ::TTFunk::Table
973
+ # Returns the value of attribute checksum_adjustment.
974
+ #
975
+ # source://ttfunk//lib/ttfunk/table/head.rb#8
976
+ def checksum_adjustment; end
977
+
978
+ # Returns the value of attribute created.
979
+ #
980
+ # source://ttfunk//lib/ttfunk/table/head.rb#12
981
+ def created; end
982
+
983
+ # Returns the value of attribute flags.
984
+ #
985
+ # source://ttfunk//lib/ttfunk/table/head.rb#10
986
+ def flags; end
987
+
988
+ # Returns the value of attribute font_direction_hint.
989
+ #
990
+ # source://ttfunk//lib/ttfunk/table/head.rb#20
991
+ def font_direction_hint; end
992
+
993
+ # Returns the value of attribute font_revision.
994
+ #
995
+ # source://ttfunk//lib/ttfunk/table/head.rb#7
996
+ def font_revision; end
997
+
998
+ # Returns the value of attribute glyph_data_format.
999
+ #
1000
+ # source://ttfunk//lib/ttfunk/table/head.rb#22
1001
+ def glyph_data_format; end
1002
+
1003
+ # Returns the value of attribute index_to_loc_format.
1004
+ #
1005
+ # source://ttfunk//lib/ttfunk/table/head.rb#21
1006
+ def index_to_loc_format; end
1007
+
1008
+ # Returns the value of attribute lowest_rec_ppem.
1009
+ #
1010
+ # source://ttfunk//lib/ttfunk/table/head.rb#19
1011
+ def lowest_rec_ppem; end
1012
+
1013
+ # Returns the value of attribute mac_style.
1014
+ #
1015
+ # source://ttfunk//lib/ttfunk/table/head.rb#18
1016
+ def mac_style; end
1017
+
1018
+ # Returns the value of attribute magic_number.
1019
+ #
1020
+ # source://ttfunk//lib/ttfunk/table/head.rb#9
1021
+ def magic_number; end
1022
+
1023
+ # Returns the value of attribute modified.
1024
+ #
1025
+ # source://ttfunk//lib/ttfunk/table/head.rb#13
1026
+ def modified; end
1027
+
1028
+ # Returns the value of attribute units_per_em.
1029
+ #
1030
+ # source://ttfunk//lib/ttfunk/table/head.rb#11
1031
+ def units_per_em; end
1032
+
1033
+ # Returns the value of attribute version.
1034
+ #
1035
+ # source://ttfunk//lib/ttfunk/table/head.rb#6
1036
+ def version; end
1037
+
1038
+ # Returns the value of attribute x_max.
1039
+ #
1040
+ # source://ttfunk//lib/ttfunk/table/head.rb#16
1041
+ def x_max; end
1042
+
1043
+ # Returns the value of attribute x_min.
1044
+ #
1045
+ # source://ttfunk//lib/ttfunk/table/head.rb#14
1046
+ def x_min; end
1047
+
1048
+ # Returns the value of attribute y_max.
1049
+ #
1050
+ # source://ttfunk//lib/ttfunk/table/head.rb#17
1051
+ def y_max; end
1052
+
1053
+ # Returns the value of attribute y_min.
1054
+ #
1055
+ # source://ttfunk//lib/ttfunk/table/head.rb#15
1056
+ def y_min; end
1057
+
1058
+ private
1059
+
1060
+ # source://ttfunk//lib/ttfunk/table/head.rb#33
1061
+ def parse!; end
1062
+
1063
+ class << self
1064
+ # source://ttfunk//lib/ttfunk/table/head.rb#24
1065
+ def encode(head, loca); end
1066
+ end
1067
+ end
1068
+
1069
+ # source://ttfunk//lib/ttfunk/table/hhea.rb#5
1070
+ class TTFunk::Table::Hhea < ::TTFunk::Table
1071
+ # Returns the value of attribute advance_width_max.
1072
+ #
1073
+ # source://ttfunk//lib/ttfunk/table/hhea.rb#10
1074
+ def advance_width_max; end
1075
+
1076
+ # Returns the value of attribute ascent.
1077
+ #
1078
+ # source://ttfunk//lib/ttfunk/table/hhea.rb#7
1079
+ def ascent; end
1080
+
1081
+ # Returns the value of attribute carot_slope_rise.
1082
+ #
1083
+ # source://ttfunk//lib/ttfunk/table/hhea.rb#14
1084
+ def carot_slope_rise; end
1085
+
1086
+ # Returns the value of attribute carot_slope_run.
1087
+ #
1088
+ # source://ttfunk//lib/ttfunk/table/hhea.rb#15
1089
+ def carot_slope_run; end
1090
+
1091
+ # Returns the value of attribute descent.
1092
+ #
1093
+ # source://ttfunk//lib/ttfunk/table/hhea.rb#8
1094
+ def descent; end
1095
+
1096
+ # Returns the value of attribute line_gap.
1097
+ #
1098
+ # source://ttfunk//lib/ttfunk/table/hhea.rb#9
1099
+ def line_gap; end
1100
+
1101
+ # Returns the value of attribute metric_data_format.
1102
+ #
1103
+ # source://ttfunk//lib/ttfunk/table/hhea.rb#16
1104
+ def metric_data_format; end
1105
+
1106
+ # Returns the value of attribute min_left_side_bearing.
1107
+ #
1108
+ # source://ttfunk//lib/ttfunk/table/hhea.rb#11
1109
+ def min_left_side_bearing; end
1110
+
1111
+ # Returns the value of attribute min_right_side_bearing.
1112
+ #
1113
+ # source://ttfunk//lib/ttfunk/table/hhea.rb#12
1114
+ def min_right_side_bearing; end
1115
+
1116
+ # Returns the value of attribute number_of_metrics.
1117
+ #
1118
+ # source://ttfunk//lib/ttfunk/table/hhea.rb#17
1119
+ def number_of_metrics; end
1120
+
1121
+ # Returns the value of attribute version.
1122
+ #
1123
+ # source://ttfunk//lib/ttfunk/table/hhea.rb#6
1124
+ def version; end
1125
+
1126
+ # Returns the value of attribute x_max_extent.
1127
+ #
1128
+ # source://ttfunk//lib/ttfunk/table/hhea.rb#13
1129
+ def x_max_extent; end
1130
+
1131
+ private
1132
+
1133
+ # source://ttfunk//lib/ttfunk/table/hhea.rb#27
1134
+ def parse!; end
1135
+
1136
+ class << self
1137
+ # source://ttfunk//lib/ttfunk/table/hhea.rb#19
1138
+ def encode(hhea, hmtx); end
1139
+ end
1140
+ end
1141
+
1142
+ # source://ttfunk//lib/ttfunk/table/hmtx.rb#5
1143
+ class TTFunk::Table::Hmtx < ::TTFunk::Table
1144
+ # source://ttfunk//lib/ttfunk/table/hmtx.rb#22
1145
+ def for(glyph_id); end
1146
+
1147
+ # Returns the value of attribute left_side_bearings.
1148
+ #
1149
+ # source://ttfunk//lib/ttfunk/table/hmtx.rb#7
1150
+ def left_side_bearings; end
1151
+
1152
+ # Returns the value of attribute metrics.
1153
+ #
1154
+ # source://ttfunk//lib/ttfunk/table/hmtx.rb#6
1155
+ def metrics; end
1156
+
1157
+ # Returns the value of attribute widths.
1158
+ #
1159
+ # source://ttfunk//lib/ttfunk/table/hmtx.rb#8
1160
+ def widths; end
1161
+
1162
+ private
1163
+
1164
+ # source://ttfunk//lib/ttfunk/table/hmtx.rb#30
1165
+ def parse!; end
1166
+
1167
+ class << self
1168
+ # source://ttfunk//lib/ttfunk/table/hmtx.rb#10
1169
+ def encode(hmtx, mapping); end
1170
+ end
1171
+ end
1172
+
1173
+ # source://ttfunk//lib/ttfunk/table/hmtx.rb#20
1174
+ class TTFunk::Table::Hmtx::HorizontalMetric < ::Struct
1175
+ # Returns the value of attribute advance_width
1176
+ #
1177
+ # @return [Object] the current value of advance_width
1178
+ def advance_width; end
1179
+
1180
+ # Sets the attribute advance_width
1181
+ #
1182
+ # @param value [Object] the value to set the attribute advance_width to.
1183
+ # @return [Object] the newly set value
1184
+ def advance_width=(_); end
1185
+
1186
+ # Returns the value of attribute left_side_bearing
1187
+ #
1188
+ # @return [Object] the current value of left_side_bearing
1189
+ def left_side_bearing; end
1190
+
1191
+ # Sets the attribute left_side_bearing
1192
+ #
1193
+ # @param value [Object] the value to set the attribute left_side_bearing to.
1194
+ # @return [Object] the newly set value
1195
+ def left_side_bearing=(_); end
1196
+
1197
+ class << self
1198
+ def [](*_arg0); end
1199
+ def inspect; end
1200
+ def keyword_init?; end
1201
+ def members; end
1202
+ def new(*_arg0); end
1203
+ end
1204
+ end
1205
+
1206
+ # source://ttfunk//lib/ttfunk/table/kern.rb#5
1207
+ class TTFunk::Table::Kern < ::TTFunk::Table
1208
+ # Returns the value of attribute tables.
1209
+ #
1210
+ # source://ttfunk//lib/ttfunk/table/kern.rb#7
1211
+ def tables; end
1212
+
1213
+ # Returns the value of attribute version.
1214
+ #
1215
+ # source://ttfunk//lib/ttfunk/table/kern.rb#6
1216
+ def version; end
1217
+
1218
+ private
1219
+
1220
+ # source://ttfunk//lib/ttfunk/table/kern.rb#68
1221
+ def add_table(format, attributes = T.unsafe(nil)); end
1222
+
1223
+ # source://ttfunk//lib/ttfunk/table/kern.rb#19
1224
+ def parse!; end
1225
+
1226
+ # source://ttfunk//lib/ttfunk/table/kern.rb#32
1227
+ def parse_version_0_tables(num_tables); end
1228
+
1229
+ # source://ttfunk//lib/ttfunk/table/kern.rb#55
1230
+ def parse_version_1_tables(num_tables); end
1231
+
1232
+ class << self
1233
+ # source://ttfunk//lib/ttfunk/table/kern.rb#9
1234
+ def encode(kerning, mapping); end
1235
+ end
1236
+ end
1237
+
1238
+ # source://ttfunk//lib/ttfunk/table/kern/format0.rb#6
1239
+ class TTFunk::Table::Kern::Format0
1240
+ include ::TTFunk::Reader
1241
+
1242
+ # @return [Format0] a new instance of Format0
1243
+ #
1244
+ # source://ttfunk//lib/ttfunk/table/kern/format0.rb#12
1245
+ def initialize(attributes = T.unsafe(nil)); end
1246
+
1247
+ # Returns the value of attribute attributes.
1248
+ #
1249
+ # source://ttfunk//lib/ttfunk/table/kern/format0.rb#9
1250
+ def attributes; end
1251
+
1252
+ # @return [Boolean]
1253
+ #
1254
+ # source://ttfunk//lib/ttfunk/table/kern/format0.rb#35
1255
+ def cross_stream?; end
1256
+
1257
+ # @return [Boolean]
1258
+ #
1259
+ # source://ttfunk//lib/ttfunk/table/kern/format0.rb#31
1260
+ def horizontal?; end
1261
+
1262
+ # Returns the value of attribute pairs.
1263
+ #
1264
+ # source://ttfunk//lib/ttfunk/table/kern/format0.rb#10
1265
+ def pairs; end
1266
+
1267
+ # source://ttfunk//lib/ttfunk/table/kern/format0.rb#39
1268
+ def recode(mapping); end
1269
+
1270
+ # @return [Boolean]
1271
+ #
1272
+ # source://ttfunk//lib/ttfunk/table/kern/format0.rb#27
1273
+ def vertical?; end
1274
+ end
1275
+
1276
+ # source://ttfunk//lib/ttfunk/table/loca.rb#5
1277
+ class TTFunk::Table::Loca < ::TTFunk::Table
1278
+ # source://ttfunk//lib/ttfunk/table/loca.rb#23
1279
+ def index_of(glyph_id); end
1280
+
1281
+ # Returns the value of attribute offsets.
1282
+ #
1283
+ # source://ttfunk//lib/ttfunk/table/loca.rb#6
1284
+ def offsets; end
1285
+
1286
+ # source://ttfunk//lib/ttfunk/table/loca.rb#27
1287
+ def size_of(glyph_id); end
1288
+
1289
+ private
1290
+
1291
+ # source://ttfunk//lib/ttfunk/table/loca.rb#33
1292
+ def parse!; end
1293
+
1294
+ class << self
1295
+ # Accepts an array of offsets, with each index corresponding to the
1296
+ # glyph id with that index.
1297
+ #
1298
+ # Returns a hash containing:
1299
+ #
1300
+ # * :table - the string representing the table's contents
1301
+ # * :type - the type of offset (to be encoded in the 'head' table)
1302
+ #
1303
+ # source://ttfunk//lib/ttfunk/table/loca.rb#15
1304
+ def encode(offsets); end
1305
+ end
1306
+ end
1307
+
1308
+ # source://ttfunk//lib/ttfunk/table/maxp.rb#5
1309
+ class TTFunk::Table::Maxp < ::TTFunk::Table
1310
+ # Returns the value of attribute max_component_contours.
1311
+ #
1312
+ # source://ttfunk//lib/ttfunk/table/maxp.rb#11
1313
+ def max_component_contours; end
1314
+
1315
+ # Returns the value of attribute max_component_depth.
1316
+ #
1317
+ # source://ttfunk//lib/ttfunk/table/maxp.rb#20
1318
+ def max_component_depth; end
1319
+
1320
+ # Returns the value of attribute max_component_elements.
1321
+ #
1322
+ # source://ttfunk//lib/ttfunk/table/maxp.rb#19
1323
+ def max_component_elements; end
1324
+
1325
+ # Returns the value of attribute max_component_points.
1326
+ #
1327
+ # source://ttfunk//lib/ttfunk/table/maxp.rb#10
1328
+ def max_component_points; end
1329
+
1330
+ # Returns the value of attribute max_contours.
1331
+ #
1332
+ # source://ttfunk//lib/ttfunk/table/maxp.rb#9
1333
+ def max_contours; end
1334
+
1335
+ # Returns the value of attribute max_function_defs.
1336
+ #
1337
+ # source://ttfunk//lib/ttfunk/table/maxp.rb#15
1338
+ def max_function_defs; end
1339
+
1340
+ # Returns the value of attribute max_instruction_defs.
1341
+ #
1342
+ # source://ttfunk//lib/ttfunk/table/maxp.rb#16
1343
+ def max_instruction_defs; end
1344
+
1345
+ # Returns the value of attribute max_points.
1346
+ #
1347
+ # source://ttfunk//lib/ttfunk/table/maxp.rb#8
1348
+ def max_points; end
1349
+
1350
+ # Returns the value of attribute max_size_of_instructions.
1351
+ #
1352
+ # source://ttfunk//lib/ttfunk/table/maxp.rb#18
1353
+ def max_size_of_instructions; end
1354
+
1355
+ # Returns the value of attribute max_stack_elements.
1356
+ #
1357
+ # source://ttfunk//lib/ttfunk/table/maxp.rb#17
1358
+ def max_stack_elements; end
1359
+
1360
+ # Returns the value of attribute max_storage.
1361
+ #
1362
+ # source://ttfunk//lib/ttfunk/table/maxp.rb#14
1363
+ def max_storage; end
1364
+
1365
+ # Returns the value of attribute max_twilight_points.
1366
+ #
1367
+ # source://ttfunk//lib/ttfunk/table/maxp.rb#13
1368
+ def max_twilight_points; end
1369
+
1370
+ # Returns the value of attribute max_zones.
1371
+ #
1372
+ # source://ttfunk//lib/ttfunk/table/maxp.rb#12
1373
+ def max_zones; end
1374
+
1375
+ # Returns the value of attribute num_glyphs.
1376
+ #
1377
+ # source://ttfunk//lib/ttfunk/table/maxp.rb#7
1378
+ def num_glyphs; end
1379
+
1380
+ # Returns the value of attribute version.
1381
+ #
1382
+ # source://ttfunk//lib/ttfunk/table/maxp.rb#6
1383
+ def version; end
1384
+
1385
+ private
1386
+
1387
+ # source://ttfunk//lib/ttfunk/table/maxp.rb#31
1388
+ def parse!; end
1389
+
1390
+ class << self
1391
+ # source://ttfunk//lib/ttfunk/table/maxp.rb#22
1392
+ def encode(maxp, mapping); end
1393
+ end
1394
+ end
1395
+
1396
+ # source://ttfunk//lib/ttfunk/table/name.rb#5
1397
+ class TTFunk::Table::Name < ::TTFunk::Table
1398
+ # Returns the value of attribute compatible_full.
1399
+ #
1400
+ # source://ttfunk//lib/ttfunk/table/name.rb#43
1401
+ def compatible_full; end
1402
+
1403
+ # source://ttfunk//lib/ttfunk/table/name.rb#27
1404
+ def copyright; end
1405
+
1406
+ # Returns the value of attribute description.
1407
+ #
1408
+ # source://ttfunk//lib/ttfunk/table/name.rb#36
1409
+ def description; end
1410
+
1411
+ # Returns the value of attribute designer.
1412
+ #
1413
+ # source://ttfunk//lib/ttfunk/table/name.rb#35
1414
+ def designer; end
1415
+
1416
+ # Returns the value of attribute designer_url.
1417
+ #
1418
+ # source://ttfunk//lib/ttfunk/table/name.rb#38
1419
+ def designer_url; end
1420
+
1421
+ # Returns the value of attribute font_family.
1422
+ #
1423
+ # source://ttfunk//lib/ttfunk/table/name.rb#28
1424
+ def font_family; end
1425
+
1426
+ # Returns the value of attribute font_name.
1427
+ #
1428
+ # source://ttfunk//lib/ttfunk/table/name.rb#31
1429
+ def font_name; end
1430
+
1431
+ # Returns the value of attribute font_subfamily.
1432
+ #
1433
+ # source://ttfunk//lib/ttfunk/table/name.rb#29
1434
+ def font_subfamily; end
1435
+
1436
+ # source://ttfunk//lib/ttfunk/table/name.rb#39
1437
+ def license; end
1438
+
1439
+ # source://ttfunk//lib/ttfunk/table/name.rb#40
1440
+ def license_url; end
1441
+
1442
+ # Returns the value of attribute manufacturer.
1443
+ #
1444
+ # source://ttfunk//lib/ttfunk/table/name.rb#34
1445
+ def manufacturer; end
1446
+
1447
+ # source://ttfunk//lib/ttfunk/table/name.rb#71
1448
+ def postscript_name; end
1449
+
1450
+ # Returns the value of attribute preferred_family.
1451
+ #
1452
+ # source://ttfunk//lib/ttfunk/table/name.rb#41
1453
+ def preferred_family; end
1454
+
1455
+ # Returns the value of attribute preferred_subfamily.
1456
+ #
1457
+ # source://ttfunk//lib/ttfunk/table/name.rb#42
1458
+ def preferred_subfamily; end
1459
+
1460
+ # Returns the value of attribute sample_text.
1461
+ #
1462
+ # source://ttfunk//lib/ttfunk/table/name.rb#44
1463
+ def sample_text; end
1464
+
1465
+ # Returns the value of attribute strings.
1466
+ #
1467
+ # source://ttfunk//lib/ttfunk/table/name.rb#25
1468
+ def strings; end
1469
+
1470
+ # Returns the value of attribute trademark.
1471
+ #
1472
+ # source://ttfunk//lib/ttfunk/table/name.rb#33
1473
+ def trademark; end
1474
+
1475
+ # Returns the value of attribute unique_subfamily.
1476
+ #
1477
+ # source://ttfunk//lib/ttfunk/table/name.rb#30
1478
+ def unique_subfamily; end
1479
+
1480
+ # Returns the value of attribute vendor_url.
1481
+ #
1482
+ # source://ttfunk//lib/ttfunk/table/name.rb#37
1483
+ def vendor_url; end
1484
+
1485
+ # Returns the value of attribute version.
1486
+ #
1487
+ # source://ttfunk//lib/ttfunk/table/name.rb#32
1488
+ def version; end
1489
+
1490
+ private
1491
+
1492
+ # source://ttfunk//lib/ttfunk/table/name.rb#78
1493
+ def parse!; end
1494
+
1495
+ class << self
1496
+ # source://ttfunk//lib/ttfunk/table/name.rb#48
1497
+ def encode(names); end
1498
+ end
1499
+ end
1500
+
1501
+ # source://ttfunk//lib/ttfunk/table/name.rb#6
1502
+ class TTFunk::Table::Name::String < ::String
1503
+ # @return [String] a new instance of String
1504
+ #
1505
+ # source://ttfunk//lib/ttfunk/table/name.rb#11
1506
+ def initialize(text, platform_id, encoding_id, language_id); end
1507
+
1508
+ # Returns the value of attribute encoding_id.
1509
+ #
1510
+ # source://ttfunk//lib/ttfunk/table/name.rb#8
1511
+ def encoding_id; end
1512
+
1513
+ # Returns the value of attribute language_id.
1514
+ #
1515
+ # source://ttfunk//lib/ttfunk/table/name.rb#9
1516
+ def language_id; end
1517
+
1518
+ # Returns the value of attribute platform_id.
1519
+ #
1520
+ # source://ttfunk//lib/ttfunk/table/name.rb#7
1521
+ def platform_id; end
1522
+
1523
+ # source://ttfunk//lib/ttfunk/table/name.rb#18
1524
+ def strip_extended; end
1525
+ end
1526
+
1527
+ # source://ttfunk//lib/ttfunk/table/os2.rb#5
1528
+ class TTFunk::Table::OS2 < ::TTFunk::Table
1529
+ # Returns the value of attribute ascent.
1530
+ #
1531
+ # source://ttfunk//lib/ttfunk/table/os2.rb#30
1532
+ def ascent; end
1533
+
1534
+ # Returns the value of attribute ave_char_width.
1535
+ #
1536
+ # source://ttfunk//lib/ttfunk/table/os2.rb#8
1537
+ def ave_char_width; end
1538
+
1539
+ # Returns the value of attribute break_char.
1540
+ #
1541
+ # source://ttfunk//lib/ttfunk/table/os2.rb#40
1542
+ def break_char; end
1543
+
1544
+ # Returns the value of attribute cap_height.
1545
+ #
1546
+ # source://ttfunk//lib/ttfunk/table/os2.rb#38
1547
+ def cap_height; end
1548
+
1549
+ # Returns the value of attribute char_range.
1550
+ #
1551
+ # source://ttfunk//lib/ttfunk/table/os2.rb#24
1552
+ def char_range; end
1553
+
1554
+ # Returns the value of attribute code_page_range.
1555
+ #
1556
+ # source://ttfunk//lib/ttfunk/table/os2.rb#35
1557
+ def code_page_range; end
1558
+
1559
+ # Returns the value of attribute default_char.
1560
+ #
1561
+ # source://ttfunk//lib/ttfunk/table/os2.rb#39
1562
+ def default_char; end
1563
+
1564
+ # Returns the value of attribute descent.
1565
+ #
1566
+ # source://ttfunk//lib/ttfunk/table/os2.rb#31
1567
+ def descent; end
1568
+
1569
+ # Returns the value of attribute family_class.
1570
+ #
1571
+ # source://ttfunk//lib/ttfunk/table/os2.rb#22
1572
+ def family_class; end
1573
+
1574
+ # Returns the value of attribute first_char_index.
1575
+ #
1576
+ # source://ttfunk//lib/ttfunk/table/os2.rb#27
1577
+ def first_char_index; end
1578
+
1579
+ # Returns the value of attribute last_char_index.
1580
+ #
1581
+ # source://ttfunk//lib/ttfunk/table/os2.rb#28
1582
+ def last_char_index; end
1583
+
1584
+ # Returns the value of attribute line_gap.
1585
+ #
1586
+ # source://ttfunk//lib/ttfunk/table/os2.rb#32
1587
+ def line_gap; end
1588
+
1589
+ # Returns the value of attribute max_context.
1590
+ #
1591
+ # source://ttfunk//lib/ttfunk/table/os2.rb#41
1592
+ def max_context; end
1593
+
1594
+ # Returns the value of attribute panose.
1595
+ #
1596
+ # source://ttfunk//lib/ttfunk/table/os2.rb#23
1597
+ def panose; end
1598
+
1599
+ # Returns the value of attribute selection.
1600
+ #
1601
+ # source://ttfunk//lib/ttfunk/table/os2.rb#26
1602
+ def selection; end
1603
+
1604
+ # source://ttfunk//lib/ttfunk/table/os2.rb#43
1605
+ def tag; end
1606
+
1607
+ # Returns the value of attribute type.
1608
+ #
1609
+ # source://ttfunk//lib/ttfunk/table/os2.rb#11
1610
+ def type; end
1611
+
1612
+ # Returns the value of attribute vendor_id.
1613
+ #
1614
+ # source://ttfunk//lib/ttfunk/table/os2.rb#25
1615
+ def vendor_id; end
1616
+
1617
+ # Returns the value of attribute version.
1618
+ #
1619
+ # source://ttfunk//lib/ttfunk/table/os2.rb#6
1620
+ def version; end
1621
+
1622
+ # Returns the value of attribute weight_class.
1623
+ #
1624
+ # source://ttfunk//lib/ttfunk/table/os2.rb#9
1625
+ def weight_class; end
1626
+
1627
+ # Returns the value of attribute width_class.
1628
+ #
1629
+ # source://ttfunk//lib/ttfunk/table/os2.rb#10
1630
+ def width_class; end
1631
+
1632
+ # Returns the value of attribute win_ascent.
1633
+ #
1634
+ # source://ttfunk//lib/ttfunk/table/os2.rb#33
1635
+ def win_ascent; end
1636
+
1637
+ # Returns the value of attribute win_descent.
1638
+ #
1639
+ # source://ttfunk//lib/ttfunk/table/os2.rb#34
1640
+ def win_descent; end
1641
+
1642
+ # Returns the value of attribute x_height.
1643
+ #
1644
+ # source://ttfunk//lib/ttfunk/table/os2.rb#37
1645
+ def x_height; end
1646
+
1647
+ # Returns the value of attribute y_strikeout_position.
1648
+ #
1649
+ # source://ttfunk//lib/ttfunk/table/os2.rb#21
1650
+ def y_strikeout_position; end
1651
+
1652
+ # Returns the value of attribute y_strikeout_size.
1653
+ #
1654
+ # source://ttfunk//lib/ttfunk/table/os2.rb#20
1655
+ def y_strikeout_size; end
1656
+
1657
+ # Returns the value of attribute y_subscript_x_offset.
1658
+ #
1659
+ # source://ttfunk//lib/ttfunk/table/os2.rb#14
1660
+ def y_subscript_x_offset; end
1661
+
1662
+ # Returns the value of attribute y_subscript_x_size.
1663
+ #
1664
+ # source://ttfunk//lib/ttfunk/table/os2.rb#12
1665
+ def y_subscript_x_size; end
1666
+
1667
+ # Returns the value of attribute y_subscript_y_offset.
1668
+ #
1669
+ # source://ttfunk//lib/ttfunk/table/os2.rb#15
1670
+ def y_subscript_y_offset; end
1671
+
1672
+ # Returns the value of attribute y_subscript_y_size.
1673
+ #
1674
+ # source://ttfunk//lib/ttfunk/table/os2.rb#13
1675
+ def y_subscript_y_size; end
1676
+
1677
+ # Returns the value of attribute y_superscript_x_offset.
1678
+ #
1679
+ # source://ttfunk//lib/ttfunk/table/os2.rb#18
1680
+ def y_superscript_x_offset; end
1681
+
1682
+ # Returns the value of attribute y_superscript_x_size.
1683
+ #
1684
+ # source://ttfunk//lib/ttfunk/table/os2.rb#16
1685
+ def y_superscript_x_size; end
1686
+
1687
+ # Returns the value of attribute y_superscript_y_offset.
1688
+ #
1689
+ # source://ttfunk//lib/ttfunk/table/os2.rb#19
1690
+ def y_superscript_y_offset; end
1691
+
1692
+ # Returns the value of attribute y_superscript_y_size.
1693
+ #
1694
+ # source://ttfunk//lib/ttfunk/table/os2.rb#17
1695
+ def y_superscript_y_size; end
1696
+
1697
+ private
1698
+
1699
+ # source://ttfunk//lib/ttfunk/table/os2.rb#49
1700
+ def parse!; end
1701
+ end
1702
+
1703
+ # source://ttfunk//lib/ttfunk/table/post.rb#5
1704
+ class TTFunk::Table::Post < ::TTFunk::Table
1705
+ # Returns the value of attribute fixed_pitch.
1706
+ #
1707
+ # source://ttfunk//lib/ttfunk/table/post.rb#10
1708
+ def fixed_pitch; end
1709
+
1710
+ # @return [Boolean]
1711
+ #
1712
+ # source://ttfunk//lib/ttfunk/table/post.rb#23
1713
+ def fixed_pitch?; end
1714
+
1715
+ # Returns the value of attribute format.
1716
+ #
1717
+ # source://ttfunk//lib/ttfunk/table/post.rb#6
1718
+ def format; end
1719
+
1720
+ # source://ttfunk//lib/ttfunk/table/post.rb#27
1721
+ def glyph_for(code); end
1722
+
1723
+ # Returns the value of attribute italic_angle.
1724
+ #
1725
+ # source://ttfunk//lib/ttfunk/table/post.rb#7
1726
+ def italic_angle; end
1727
+
1728
+ # Returns the value of attribute max_mem_type1.
1729
+ #
1730
+ # source://ttfunk//lib/ttfunk/table/post.rb#14
1731
+ def max_mem_type1; end
1732
+
1733
+ # Returns the value of attribute max_mem_type42.
1734
+ #
1735
+ # source://ttfunk//lib/ttfunk/table/post.rb#12
1736
+ def max_mem_type42; end
1737
+
1738
+ # Returns the value of attribute min_mem_type1.
1739
+ #
1740
+ # source://ttfunk//lib/ttfunk/table/post.rb#13
1741
+ def min_mem_type1; end
1742
+
1743
+ # Returns the value of attribute min_mem_type42.
1744
+ #
1745
+ # source://ttfunk//lib/ttfunk/table/post.rb#11
1746
+ def min_mem_type42; end
1747
+
1748
+ # source://ttfunk//lib/ttfunk/table/post.rb#31
1749
+ def recode(mapping); end
1750
+
1751
+ # Returns the value of attribute subtable.
1752
+ #
1753
+ # source://ttfunk//lib/ttfunk/table/post.rb#16
1754
+ def subtable; end
1755
+
1756
+ # Returns the value of attribute underline_position.
1757
+ #
1758
+ # source://ttfunk//lib/ttfunk/table/post.rb#8
1759
+ def underline_position; end
1760
+
1761
+ # Returns the value of attribute underline_thickness.
1762
+ #
1763
+ # source://ttfunk//lib/ttfunk/table/post.rb#9
1764
+ def underline_thickness; end
1765
+
1766
+ private
1767
+
1768
+ # source://ttfunk//lib/ttfunk/table/post.rb#61
1769
+ def parse!; end
1770
+
1771
+ # source://ttfunk//lib/ttfunk/table/post.rb#83
1772
+ def parse_format!; end
1773
+
1774
+ class << self
1775
+ # source://ttfunk//lib/ttfunk/table/post.rb#18
1776
+ def encode(post, mapping); end
1777
+ end
1778
+ end
1779
+
1780
+ # source://ttfunk//lib/ttfunk/table/post/format10.rb#4
1781
+ module TTFunk::Table::Post::Format10
1782
+ # source://ttfunk//lib/ttfunk/table/post/format10.rb#31
1783
+ def glyph_for(code); end
1784
+
1785
+ private
1786
+
1787
+ # source://ttfunk//lib/ttfunk/table/post/format10.rb#37
1788
+ def parse_format!; end
1789
+ end
1790
+
1791
+ # source://ttfunk//lib/ttfunk/table/post/format10.rb#5
1792
+ TTFunk::Table::Post::Format10::POSTSCRIPT_GLYPHS = T.let(T.unsafe(nil), Array)
1793
+
1794
+ # source://ttfunk//lib/ttfunk/table/post/format20.rb#7
1795
+ module TTFunk::Table::Post::Format20
1796
+ include ::TTFunk::Table::Post::Format10
1797
+
1798
+ # source://ttfunk//lib/ttfunk/table/post/format20.rb#10
1799
+ def glyph_for(code); end
1800
+
1801
+ private
1802
+
1803
+ # source://ttfunk//lib/ttfunk/table/post/format20.rb#21
1804
+ def parse_format!; end
1805
+ end
1806
+
1807
+ # source://ttfunk//lib/ttfunk/table/post/format30.rb#4
1808
+ module TTFunk::Table::Post::Format30
1809
+ # source://ttfunk//lib/ttfunk/table/post/format30.rb#5
1810
+ def glyph_for(code); end
1811
+
1812
+ private
1813
+
1814
+ # source://ttfunk//lib/ttfunk/table/post/format30.rb#11
1815
+ def parse_format!; end
1816
+ end
1817
+
1818
+ # source://ttfunk//lib/ttfunk/table/post/format40.rb#4
1819
+ module TTFunk::Table::Post::Format40
1820
+ # source://ttfunk//lib/ttfunk/table/post/format40.rb#5
1821
+ def glyph_for(code); end
1822
+
1823
+ private
1824
+
1825
+ # source://ttfunk//lib/ttfunk/table/post/format40.rb#11
1826
+ def parse_format!; end
1827
+ end
1828
+
1829
+ # source://ttfunk//lib/ttfunk/table/sbix.rb#5
1830
+ class TTFunk::Table::Sbix < ::TTFunk::Table
1831
+ # source://ttfunk//lib/ttfunk/table/sbix.rb#32
1832
+ def all_bitmap_data_for(glyph_id); end
1833
+
1834
+ # source://ttfunk//lib/ttfunk/table/sbix.rb#13
1835
+ def bitmap_data_for(glyph_id, strike_index); end
1836
+
1837
+ # Returns the value of attribute flags.
1838
+ #
1839
+ # source://ttfunk//lib/ttfunk/table/sbix.rb#7
1840
+ def flags; end
1841
+
1842
+ # Returns the value of attribute num_strikes.
1843
+ #
1844
+ # source://ttfunk//lib/ttfunk/table/sbix.rb#8
1845
+ def num_strikes; end
1846
+
1847
+ # Returns the value of attribute strikes.
1848
+ #
1849
+ # source://ttfunk//lib/ttfunk/table/sbix.rb#9
1850
+ def strikes; end
1851
+
1852
+ # Returns the value of attribute version.
1853
+ #
1854
+ # source://ttfunk//lib/ttfunk/table/sbix.rb#6
1855
+ def version; end
1856
+
1857
+ private
1858
+
1859
+ # source://ttfunk//lib/ttfunk/table/sbix.rb#40
1860
+ def parse!; end
1861
+ end
1862
+
1863
+ # source://ttfunk//lib/ttfunk/table/sbix.rb#11
1864
+ class TTFunk::Table::Sbix::BitmapData < ::Struct
1865
+ # Returns the value of attribute data
1866
+ #
1867
+ # @return [Object] the current value of data
1868
+ def data; end
1869
+
1870
+ # Sets the attribute data
1871
+ #
1872
+ # @param value [Object] the value to set the attribute data to.
1873
+ # @return [Object] the newly set value
1874
+ def data=(_); end
1875
+
1876
+ # Returns the value of attribute ppem
1877
+ #
1878
+ # @return [Object] the current value of ppem
1879
+ def ppem; end
1880
+
1881
+ # Sets the attribute ppem
1882
+ #
1883
+ # @param value [Object] the value to set the attribute ppem to.
1884
+ # @return [Object] the newly set value
1885
+ def ppem=(_); end
1886
+
1887
+ # Returns the value of attribute resolution
1888
+ #
1889
+ # @return [Object] the current value of resolution
1890
+ def resolution; end
1891
+
1892
+ # Sets the attribute resolution
1893
+ #
1894
+ # @param value [Object] the value to set the attribute resolution to.
1895
+ # @return [Object] the newly set value
1896
+ def resolution=(_); end
1897
+
1898
+ # Returns the value of attribute type
1899
+ #
1900
+ # @return [Object] the current value of type
1901
+ def type; end
1902
+
1903
+ # Sets the attribute type
1904
+ #
1905
+ # @param value [Object] the value to set the attribute type to.
1906
+ # @return [Object] the newly set value
1907
+ def type=(_); end
1908
+
1909
+ # Returns the value of attribute x
1910
+ #
1911
+ # @return [Object] the current value of x
1912
+ def x; end
1913
+
1914
+ # Sets the attribute x
1915
+ #
1916
+ # @param value [Object] the value to set the attribute x to.
1917
+ # @return [Object] the newly set value
1918
+ def x=(_); end
1919
+
1920
+ # Returns the value of attribute y
1921
+ #
1922
+ # @return [Object] the current value of y
1923
+ def y; end
1924
+
1925
+ # Sets the attribute y
1926
+ #
1927
+ # @param value [Object] the value to set the attribute y to.
1928
+ # @return [Object] the newly set value
1929
+ def y=(_); end
1930
+
1931
+ class << self
1932
+ def [](*_arg0); end
1933
+ def inspect; end
1934
+ def keyword_init?; end
1935
+ def members; end
1936
+ def new(*_arg0); end
1937
+ end
1938
+ end
1939
+
1940
+ # source://ttfunk//lib/ttfunk/table/simple.rb#5
1941
+ class TTFunk::Table::Simple < ::TTFunk::Table
1942
+ # @return [Simple] a new instance of Simple
1943
+ #
1944
+ # source://ttfunk//lib/ttfunk/table/simple.rb#8
1945
+ def initialize(file, tag); end
1946
+
1947
+ # Returns the value of attribute tag.
1948
+ #
1949
+ # source://ttfunk//lib/ttfunk/table/simple.rb#6
1950
+ def tag; end
1951
+ end