@yft-design/fontkit-lib 1.0.0

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.
package/fontkit.d.ts ADDED
@@ -0,0 +1,640 @@
1
+ export as namespace fontkit;
2
+
3
+ /**
4
+ * Represents a glyph bounding box
5
+ */
6
+ export interface BoundingBox {
7
+ minX: number /** The minimum X position in the bounding box */;
8
+ minY: number /** The minimum Y position in the bounding box */;
9
+ maxX: number /** The maxmimum X position in the bounding box */;
10
+ maxY: number /** The maxmimum Y position in the bounding box */;
11
+ width: number /** The width of the bounding box */;
12
+ height: number /** The height of the bounding box */;
13
+ }
14
+
15
+ /**
16
+ * Path objects are returned by glyphs and represent the actual vector outlines
17
+ * for each glyph in the font. Paths can be converted to SVG path data strings,
18
+ * or to functions that can be applied to render the path to a graphics context.
19
+ */
20
+ export interface Path {
21
+ /**
22
+ * This property represents the path’s bounding box, i.e. the smallest
23
+ * rectangle that contains the entire path shape. This is the exact
24
+ * bounding box, taking into account control points that may be outside the
25
+ * visible shape.
26
+ */
27
+ bbox: BoundingBox;
28
+
29
+ /**
30
+ * This property represents the path’s control box. It is like the
31
+ * bounding box, but it includes all points of the path, including control
32
+ * points of bezier segments. It is much faster to compute than the real
33
+ * bounding box, but less accurate if there are control points outside of the
34
+ * visible shape.
35
+ */
36
+ cbox: BoundingBox;
37
+
38
+ /**
39
+ * Moves the virtual pen to the given x, y coordinates.
40
+ */
41
+ moveTo(x: number, y: number): void;
42
+
43
+ /**
44
+ * Adds a line to the path from the current point to the
45
+ * given x, y coordinates.
46
+ */
47
+ lineTo(x: number, y: number): void;
48
+
49
+ /**
50
+ * Adds a quadratic curve to the path from the current point to the
51
+ * given x, y coordinates using cpx, cpy as a control point.
52
+ */
53
+ quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
54
+
55
+ /**
56
+ * Adds a bezier curve to the path from the current point to the
57
+ * given x, y coordinates using cp1x, cp1y and cp2x, cp2y as control points.
58
+ */
59
+ bezierCurveTo(
60
+ cp1x: number,
61
+ cp1y: number,
62
+ cp2x: number,
63
+ cp2y: number,
64
+ x: number,
65
+ y: number,
66
+ ): void;
67
+
68
+ /**
69
+ * Closes the current sub-path by drawing a straight line back to the
70
+ * starting point.
71
+ */
72
+ closePath(): void;
73
+
74
+ /**
75
+ * Compiles the path to a JavaScript function that can be applied with a
76
+ * graphics context in order to render the path.
77
+ */
78
+ toFunction(): Function;
79
+
80
+ /**
81
+ * Converts the path to an SVG path data string.
82
+ */
83
+ toSVG(): string;
84
+ }
85
+
86
+ /**
87
+ * Glyph objects represent a glyph in the font. They have various properties for
88
+ * accessing metrics and the actual vector path the glyph represents, and
89
+ * methods for rendering the glyph to a graphics context.
90
+ *
91
+ * You do not create glyph objects directly. They are created by various methods
92
+ * on the Font object. There are several subclasses of the base Glyph class
93
+ * internally that may be returned depending on the font format, but they all
94
+ * include the following API.
95
+ */
96
+ export interface Glyph {
97
+ // Properties
98
+ id: number /** The glyph's id in the font */;
99
+ /**
100
+ * An array of unicode code points that are represented by this glyph. There
101
+ * can be multiple code points in the case of ligatures and other glyphs that
102
+ * represent multiple visual characters.
103
+ */
104
+ codePoints: number[];
105
+ path: Path /** Vector Path object representing the glyph */;
106
+ /**
107
+ * The Glyph’s bounding box, i.e. the rectangle that encloses the glyph
108
+ * outline as tightly as possible.
109
+ */
110
+ bbox: BoundingBox;
111
+ /**
112
+ * The Glyph’s control box. This is often the same as the bounding box, but is
113
+ * faster to compute. Because of the way bezier curves are defined, some of
114
+ * the control points can be outside of the bounding box. Where bbox takes
115
+ * this into account, cbox does not. Thus, cbox is less accurate, but faster
116
+ * to compute.
117
+ */
118
+ cbox: BoundingBox;
119
+ advanceWidth: number /** The Glyph's advance width */;
120
+
121
+ // Methods
122
+ /**
123
+ * Renders the glyph to the given graphics context, at the specified
124
+ * font size.
125
+ */
126
+ render(context: any, size: number): void;
127
+
128
+ // Color Glyph Properties/Methods
129
+ /**
130
+ * For SBIX glyphs, which are bitmap based, this returns an object containing
131
+ * some properties about the image, along with the image data itself
132
+ * (usually PNG).
133
+ */
134
+ getImageForSize(size: number): Uint8Array;
135
+
136
+ /**
137
+ * For COLR glyphs, which are vector based, this returns an array of objects
138
+ * representing the glyphs and colors for each layer in render order.
139
+ */
140
+ layers: any[];
141
+ }
142
+
143
+ /**
144
+ * Represents positioning information for a glyph in a GlyphRun.
145
+ */
146
+ export interface GlyphPosition {
147
+ /**
148
+ * The amount to move the virtual pen in the X direction after rendering
149
+ * this glyph.
150
+ */
151
+ xAdvance: number;
152
+
153
+ /**
154
+ * The amount to move the virtual pen in the Y direction after rendering
155
+ * this glyph.
156
+ */
157
+ yAdvance: number;
158
+
159
+ /**
160
+ * The offset from the pen position in the X direction at which to render
161
+ * this glyph.
162
+ */
163
+ xOffset: number;
164
+
165
+ /**
166
+ * The offset from the pen position in the Y direction at which to render
167
+ * this glyph.
168
+ */
169
+ yOffset: number;
170
+ }
171
+
172
+ /**
173
+ * Represents a run of Glyph and GlyphPosition objects.
174
+ * Returned by the Font.layout method.
175
+ */
176
+ export interface GlyphRun {
177
+ /**
178
+ * An array of Glyph objects in the run
179
+ */
180
+ glyphs: Glyph[];
181
+
182
+ /**
183
+ * An array of GlyphPosition objects for each glyph in the run
184
+ */
185
+ positions: GlyphPosition[];
186
+
187
+ /**
188
+ * The script that was requested for shaping. This was either passed in or detected automatically.
189
+ */
190
+ script: string;
191
+
192
+ /**
193
+ * The language requested for shaping, as passed in. If `null`, the default language for the
194
+ * script was used.
195
+ */
196
+ language: string | null;
197
+
198
+ /**
199
+ * The direction requested for shaping, as passed in (either ltr or rtl).
200
+ * If `null`, the default direction of the script is used.
201
+ */
202
+ direction: 'ltr' | 'rtl' | null;
203
+
204
+ /**
205
+ * The features requested during shaping. This is a combination of user
206
+ * specified features and features chosen by the shaper.
207
+ */
208
+ features: object;
209
+
210
+ /**
211
+ * The total advance width of the run.
212
+ */
213
+ advanceWidth: number;
214
+
215
+ /**
216
+ * The total advance height of the run.
217
+ */
218
+ advanceHeight: number;
219
+
220
+ /**
221
+ * The bounding box containing all glyphs in the run.
222
+ */
223
+ bbox: BoundingBox;
224
+ }
225
+
226
+ export interface SubsetStream {
227
+ on: (
228
+ eventType: 'data' | 'end',
229
+ callback: (data: Uint8Array) => any,
230
+ ) => SubsetStream;
231
+ }
232
+
233
+ export interface Subset {
234
+ /**
235
+ * Includes the given glyph object or glyph ID in the subset.
236
+ * Returns the glyph's new ID in the subset.
237
+ */
238
+ includeGlyph(glyph: number | Glyph): number;
239
+
240
+ /**
241
+ * Returns a stream containing the encoded font file that can be piped to a
242
+ * destination, such as a file.
243
+ */
244
+ encodeStream(): SubsetStream;
245
+ }
246
+
247
+ /**
248
+ * A map of OpenType features as described in OpenType's spec:
249
+ * https://docs.microsoft.com/en-gb/typography/opentype/spec/featurelist.
250
+ */
251
+ export interface OpenTypeFeatures {
252
+ aalt?: boolean;
253
+ abvf?: boolean;
254
+ abvm?: boolean;
255
+ abvs?: boolean;
256
+ afrc?: boolean;
257
+ akhn?: boolean;
258
+ blwf?: boolean;
259
+ blwm?: boolean;
260
+ blws?: boolean;
261
+ calt?: boolean;
262
+ case?: boolean;
263
+ ccmp?: boolean;
264
+ cfar?: boolean;
265
+ cjct?: boolean;
266
+ clig?: boolean;
267
+ cpct?: boolean;
268
+ cpsp?: boolean;
269
+ cswh?: boolean;
270
+ curs?: boolean;
271
+ cv01?: boolean;
272
+ cv02?: boolean;
273
+ cv03?: boolean;
274
+ cv04?: boolean;
275
+ cv05?: boolean;
276
+ cv06?: boolean;
277
+ cv07?: boolean;
278
+ cv08?: boolean;
279
+ cv09?: boolean;
280
+ cv10?: boolean;
281
+ cv11?: boolean;
282
+ cv22?: boolean;
283
+ cv23?: boolean;
284
+ cv24?: boolean;
285
+ cv25?: boolean;
286
+ cv26?: boolean;
287
+ cv27?: boolean;
288
+ cv28?: boolean;
289
+ cv29?: boolean;
290
+ cv30?: boolean;
291
+ cv31?: boolean;
292
+ cv32?: boolean;
293
+ cv33?: boolean;
294
+ cv34?: boolean;
295
+ cv35?: boolean;
296
+ cv36?: boolean;
297
+ cv37?: boolean;
298
+ cv38?: boolean;
299
+ cv39?: boolean;
300
+ cv40?: boolean;
301
+ cv41?: boolean;
302
+ cv42?: boolean;
303
+ cv43?: boolean;
304
+ cv44?: boolean;
305
+ cv45?: boolean;
306
+ cv46?: boolean;
307
+ cv47?: boolean;
308
+ cv48?: boolean;
309
+ cv49?: boolean;
310
+ cv50?: boolean;
311
+ cv51?: boolean;
312
+ cv52?: boolean;
313
+ cv53?: boolean;
314
+ cv54?: boolean;
315
+ cv55?: boolean;
316
+ cv56?: boolean;
317
+ cv57?: boolean;
318
+ cv58?: boolean;
319
+ cv59?: boolean;
320
+ cv60?: boolean;
321
+ cv61?: boolean;
322
+ cv62?: boolean;
323
+ cv63?: boolean;
324
+ cv64?: boolean;
325
+ cv65?: boolean;
326
+ cv66?: boolean;
327
+ cv67?: boolean;
328
+ cv68?: boolean;
329
+ cv69?: boolean;
330
+ cv70?: boolean;
331
+ cv71?: boolean;
332
+ cv72?: boolean;
333
+ cv73?: boolean;
334
+ cv74?: boolean;
335
+ cv75?: boolean;
336
+ cv76?: boolean;
337
+ cv77?: boolean;
338
+ cv78?: boolean;
339
+ cv79?: boolean;
340
+ cv80?: boolean;
341
+ cv81?: boolean;
342
+ cv82?: boolean;
343
+ cv83?: boolean;
344
+ cv84?: boolean;
345
+ cv85?: boolean;
346
+ cv86?: boolean;
347
+ cv87?: boolean;
348
+ cv88?: boolean;
349
+ cv89?: boolean;
350
+ cv90?: boolean;
351
+ cv91?: boolean;
352
+ cv92?: boolean;
353
+ cv93?: boolean;
354
+ cv94?: boolean;
355
+ cv95?: boolean;
356
+ cv96?: boolean;
357
+ cv97?: boolean;
358
+ cv98?: boolean;
359
+ cv99?: boolean;
360
+ c2pc?: boolean;
361
+ c2sc?: boolean;
362
+ dist?: boolean;
363
+ dlig?: boolean;
364
+ dnom?: boolean;
365
+ dtls?: boolean;
366
+ expt?: boolean;
367
+ falt?: boolean;
368
+ fin2?: boolean;
369
+ fin3?: boolean;
370
+ fina?: boolean;
371
+ flac?: boolean;
372
+ frac?: boolean;
373
+ fwid?: boolean;
374
+ half?: boolean;
375
+ haln?: boolean;
376
+ halt?: boolean;
377
+ hist?: boolean;
378
+ hkna?: boolean;
379
+ hlig?: boolean;
380
+ hngl?: boolean;
381
+ hojo?: boolean;
382
+ hwid?: boolean;
383
+ init?: boolean;
384
+ isol?: boolean;
385
+ ital?: boolean;
386
+ jalt?: boolean;
387
+ jp78?: boolean;
388
+ jp83?: boolean;
389
+ jp90?: boolean;
390
+ jp04?: boolean;
391
+ kern?: boolean;
392
+ lfbd?: boolean;
393
+ liga?: boolean;
394
+ ljmo?: boolean;
395
+ lnum?: boolean;
396
+ locl?: boolean;
397
+ ltra?: boolean;
398
+ ltrm?: boolean;
399
+ mark?: boolean;
400
+ med2?: boolean;
401
+ medi?: boolean;
402
+ mgrk?: boolean;
403
+ mkmk?: boolean;
404
+ mset?: boolean;
405
+ nalt?: boolean;
406
+ nlck?: boolean;
407
+ nukt?: boolean;
408
+ numr?: boolean;
409
+ onum?: boolean;
410
+ opbd?: boolean;
411
+ ordn?: boolean;
412
+ ornm?: boolean;
413
+ palt?: boolean;
414
+ pcap?: boolean;
415
+ pkna?: boolean;
416
+ pnum?: boolean;
417
+ pref?: boolean;
418
+ pres?: boolean;
419
+ pstf?: boolean;
420
+ psts?: boolean;
421
+ pwid?: boolean;
422
+ qwid?: boolean;
423
+ rand?: boolean;
424
+ rclt?: boolean;
425
+ rkrf?: boolean;
426
+ rlig?: boolean;
427
+ rphf?: boolean;
428
+ rtbd?: boolean;
429
+ rtla?: boolean;
430
+ rtlm?: boolean;
431
+ ruby?: boolean;
432
+ rvrn?: boolean;
433
+ salt?: boolean;
434
+ sinf?: boolean;
435
+ size?: boolean;
436
+ smcp?: boolean;
437
+ smpl?: boolean;
438
+ ss01?: boolean;
439
+ ss02?: boolean;
440
+ ss03?: boolean;
441
+ ss04?: boolean;
442
+ ss05?: boolean;
443
+ ss06?: boolean;
444
+ ss07?: boolean;
445
+ ss08?: boolean;
446
+ ss09?: boolean;
447
+ ss10?: boolean;
448
+ ss11?: boolean;
449
+ ss12?: boolean;
450
+ ss13?: boolean;
451
+ ss14?: boolean;
452
+ ss15?: boolean;
453
+ ss16?: boolean;
454
+ ss17?: boolean;
455
+ ss18?: boolean;
456
+ ss19?: boolean;
457
+ ss20?: boolean;
458
+ ssty?: boolean;
459
+ stch?: boolean;
460
+ subs?: boolean;
461
+ sups?: boolean;
462
+ swsh?: boolean;
463
+ titl?: boolean;
464
+ tjmo?: boolean;
465
+ tnam?: boolean;
466
+ tnum?: boolean;
467
+ trad?: boolean;
468
+ twid?: boolean;
469
+ unic?: boolean;
470
+ valt?: boolean;
471
+ vatu?: boolean;
472
+ vert?: boolean;
473
+ vhal?: boolean;
474
+ vjmo?: boolean;
475
+ vkna?: boolean;
476
+ vkrn?: boolean;
477
+ vpal?: boolean;
478
+ vrt2?: boolean;
479
+ vrtr?: boolean;
480
+ zero?: boolean;
481
+ }
482
+ /**
483
+ * A map of Apple Advanced Typography (AAT) as decribed by Apple’s TrueType
484
+ * Reference manual:
485
+ * https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6AATIntro.html
486
+ */
487
+ export interface AATFeatures {
488
+ acnt?: boolean;
489
+ ankr?: boolean;
490
+ avar?: boolean;
491
+ bdat?: boolean;
492
+ bhed?: boolean;
493
+ bloc?: boolean;
494
+ bsln?: boolean;
495
+ cmap?: boolean;
496
+ cvar?: boolean;
497
+ cvt?: boolean;
498
+ EBSC?: boolean;
499
+ fdsc?: boolean;
500
+ feat?: boolean;
501
+ fmtx?: boolean;
502
+ fond?: boolean;
503
+ fpgm?: boolean;
504
+ fvar?: boolean;
505
+ gasp?: boolean;
506
+ gcid?: boolean;
507
+ glyf?: boolean;
508
+ gvar?: boolean;
509
+ hdmx?: boolean;
510
+ head?: boolean;
511
+ hhea?: boolean;
512
+ hmtx?: boolean;
513
+ just?: boolean;
514
+ kern?: boolean;
515
+ kerx?: boolean;
516
+ lcar?: boolean;
517
+ loca?: boolean;
518
+ ltag?: boolean;
519
+ maxp?: boolean;
520
+ meta?: boolean;
521
+ mort?: boolean;
522
+ morx?: boolean;
523
+ name?: boolean;
524
+ opbd?: boolean;
525
+ 'OS/2'?: boolean;
526
+ post?: boolean;
527
+ prep?: boolean;
528
+ prop?: boolean;
529
+ sbix?: boolean;
530
+ trak?: boolean;
531
+ vhea?: boolean;
532
+ vmtx?: boolean;
533
+ xref?: boolean;
534
+ Zapf?: boolean;
535
+ }
536
+
537
+ /**
538
+ * The features is an object mapping OpenType features to a boolean
539
+ * enabling or disabling each. If this is an AAT font,
540
+ * the OpenType feature tags are mapped to AAT features.
541
+ */
542
+ export interface TypeFeatures extends OpenTypeFeatures, AATFeatures {
543
+ [key: string]: boolean;
544
+ }
545
+
546
+ /**
547
+ * There are several different types of font objects that are returned by
548
+ * fontkit depending on the font format. They all inherit from the TTFFont class
549
+ * and have the same public API.
550
+ */
551
+ export interface Font {
552
+ // Metadata properties
553
+ postscriptName: string | null;
554
+ fullName: string | null;
555
+ familyName: string | null;
556
+ subfamilyName: string | null;
557
+ copyright: string | null;
558
+ version: string | null;
559
+
560
+ // Metrics properties
561
+ unitsPerEm: number /** Size of the font’s internal coordinate grid */;
562
+ ascent: number /** The font’s ascender */;
563
+ descent: number /** The font’s descender */;
564
+ lineGap: number /** Amount of space that should be included between lines */;
565
+ underlinePosition: number /** Offset from the normal underline position that should be used */;
566
+ underlineThickness: number /** Weight of the underline that should be used */;
567
+ italicAngle: number /** If this is an italic font, the angle the cursor should be drawn at to match the font design */;
568
+ capHeight: number /** Height of capital letters above the baseline. */;
569
+ xHeight: number /** Height of lower case letters. */;
570
+ bbox: BoundingBox /** Font’s bounding box, i.e. the box that encloses all glyphs in the font */;
571
+
572
+ // Other properties
573
+ numGlyphs: number /** Number of glyphs in the font */;
574
+ characterSet: number[] /** Array of all of the unicode code points supported by the font */;
575
+ availableFeatures: (keyof TypeFeatures)[] /** OpenType feature tags (or mapped AAT tags) supported by the font */;
576
+ cff: any;
577
+ 'OS/2': { sFamilyClass: number };
578
+ head: { macStyle: { italic: boolean } };
579
+ post: { isFixedPitch: boolean };
580
+
581
+ // Character to Glyph Mapping Methods
582
+
583
+ /**
584
+ * Maps a single unicode code point (number) to a Glyph object.
585
+ * Does not perform any advanced substitutions (there is no context to do so).
586
+ */
587
+ glyphForCodePoint(codePoint: number): Glyph;
588
+
589
+ /**
590
+ * Returns whether there is glyph in the font for the given
591
+ * unicode code point.
592
+ */
593
+ hasGlyphForCodePoint(codePoint: number): boolean;
594
+
595
+ /**
596
+ * This method returns an array of Glyph objects for the given string.
597
+ * This is only a one-to-one mapping from characters to glyphs. For most uses,
598
+ * you should use Font.layout, which provides a much more advanced mapping
599
+ * supporting AAT and OpenType shaping.
600
+ */
601
+ glyphsForString(string: string): Glyph[];
602
+
603
+ // Glyph Metrics and Layout Methods
604
+
605
+ /**
606
+ * Returns the advance width (described above) for a single glyph id.
607
+ */
608
+ widthOfGlyph(glyphId: number): number;
609
+
610
+ /**
611
+ * This method returns a GlyphRun object, which includes an array of Glyphs
612
+ * and GlyphPositions for the given string. Glyph objects are described below.
613
+ * GlyphPosition objects include 4 properties: xAdvance, yAdvance, xOffset,
614
+ * and yOffset.
615
+ *
616
+ * The features parameter is an array of OpenType feature tags to be applied
617
+ * in addition to the default set. If this is an AAT font, the OpenType
618
+ * feature tags are mapped to AAT features.
619
+ */
620
+ layout(
621
+ string: string,
622
+ features?: TypeFeatures | (keyof TypeFeatures)[],
623
+ ): GlyphRun;
624
+
625
+ // Other Methods
626
+
627
+ /**
628
+ * Returns a glyph object for the given glyph id. You can pass the array of
629
+ * code points this glyph represents for your use later, and it will be
630
+ * stored in the glyph object.
631
+ */
632
+ getGlyph(glyphId: number, codePoints?: number[]): Glyph;
633
+
634
+ /**
635
+ * Returns a Subset object for this font.
636
+ */
637
+ createSubset(): Subset;
638
+ }
639
+
640
+ export function create(buffer: Uint8Array, postscriptName?: string): Font;
package/package.json ADDED
@@ -0,0 +1,87 @@
1
+ {
2
+ "name": "@yft-design/fontkit-lib",
3
+ "version": "1.0.0",
4
+ "description": "Font engine for Node and the browser (forked from znacloud/pdf-fontkit@1.8.9: CFF subset charset nLeft clamp + encodeStream error propagation)",
5
+ "main": "dist/fontkit.umd.js",
6
+ "unpkg": "dist/fontkit.umd.min.js",
7
+ "module": "dist/fontkit.es.js",
8
+ "types": "fontkit.d.ts",
9
+ "scripts": {
10
+ "make": "node Makefile.js",
11
+ "clean": "node Makefile.js clean",
12
+ "test": "MODULE_TYPE=commonjs mocha",
13
+ "coverage": "cross-env BABEL_ENV=cover nyc mocha"
14
+ },
15
+ "files": [
16
+ "dist/",
17
+ "es/",
18
+ "lib/",
19
+ "fontkit.d.ts",
20
+ "package.json",
21
+ "README.md"
22
+ ],
23
+ "dependencies": {
24
+ "pako": "^1.0.6"
25
+ },
26
+ "devDependencies": {
27
+ "@babel/cli": "^7.2.0",
28
+ "@babel/core": "^7.2.2",
29
+ "@babel/node": "^7.2.2",
30
+ "@babel/plugin-proposal-class-properties": "^7.2.1",
31
+ "@babel/plugin-proposal-decorators": "^7.2.2",
32
+ "@babel/preset-env": "^7.2.0",
33
+ "@babel/register": "^7.0.0",
34
+ "@pdf-lib/brotli": "^0.0.0",
35
+ "@pdf-lib/restructure": "^0.0.1",
36
+ "@pdf-lib/unicode-properties": "^0.0.1",
37
+ "@rollup/plugin-babel": "^5.0.0",
38
+ "@rollup/plugin-commonjs": "^11.1.0",
39
+ "@rollup/plugin-inject": "^4.0.2",
40
+ "@rollup/plugin-json": "^4.0.3",
41
+ "@rollup/plugin-node-resolve": "^7.1.3",
42
+ "babel-plugin-istanbul": "^4.1.3",
43
+ "base64-arraybuffer": "^0.1.5",
44
+ "buffer": "^5.6.0",
45
+ "clone": "^1.0.1",
46
+ "codepoints": "^1.2.0",
47
+ "concat-stream": "^1.4.6",
48
+ "deep-equal": "^1.0.0",
49
+ "dfa": "^1.0.0",
50
+ "esdoc": "^0.4.8",
51
+ "esdoc-es7-plugin": "0.0.3",
52
+ "iconv-lite": "^0.4.24",
53
+ "mocha": "^2.0.1",
54
+ "nyc": "^10.3.2",
55
+ "rollup": "^2.10.2",
56
+ "rollup-plugin-analyzer": "^3.2.3",
57
+ "rollup-plugin-node-builtins": "^2.1.2",
58
+ "rollup-plugin-node-globals": "^1.4.0",
59
+ "rollup-plugin-terser": "^5.3.0",
60
+ "rollup-plugin-visualizer": "^4.0.4",
61
+ "shelljs": "^0.8.3",
62
+ "tiny-inflate": "^1.0.2",
63
+ "unicode-trie": "^0.3.0"
64
+ },
65
+ "repository": {
66
+ "type": "git",
67
+ "url": "git+https://github.com/more-strive/fontkit-lib.git"
68
+ },
69
+ "keywords": [
70
+ "opentype",
71
+ "font",
72
+ "typography",
73
+ "subset",
74
+ "emoji",
75
+ "glyph",
76
+ "layout"
77
+ ],
78
+ "author": "Andrew Dillon <andrew.dillon.j@gmail.com>",
79
+ "contributors": [
80
+ "Devon Govett <devongovett@gmail.com> (http://badassjs.com/)"
81
+ ],
82
+ "bugs": {
83
+ "url": "https://github.com/znacloud/pdf-fontkit/issues"
84
+ },
85
+ "license": "MIT",
86
+ "homepage": "https://github.com/more-strive/fontkit-lib"
87
+ }