PHP 8.2.30
Preview: Subset.js Size: 522 B
//home/byroehnu/easepay.easetack.com/node_modules/fontkit/src/subset/Subset.js

import * as r from 'restructure';

const resolved = Promise.resolve();

export default class Subset {
  constructor(font) {
    this.font = font;
    this.glyphs = [];
    this.mapping = {};

    // always include the missing glyph
    this.includeGlyph(0);
  }

  includeGlyph(glyph) {
    if (typeof glyph === 'object') {
      glyph = glyph.id;
    }

    if (this.mapping[glyph] == null) {
      this.glyphs.push(glyph);
      this.mapping[glyph] = this.glyphs.length - 1;
    }

    return this.mapping[glyph];
  }
}

Directory Contents

Dirs: 0 × Files: 4

Name Size Perms Modified Actions
127 B lr--r--r-- 2026-03-14 01:49:19
Edit Download
4.30 KB lrw-r--r-- 2026-02-14 19:19:22
Edit Download
522 B lrw-r--r-- 2026-02-14 19:19:40
Edit Download
3.35 KB lrw-r--r-- 2026-02-14 19:19:40
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).