How to use ttf2woff2 - 1 common examples

To help you get started, we’ve selected a few ttf2woff2 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kiwicom / orbit-components / config / createSVGFont.js View on Github external
createSVG().then(() => {
  const TTF_PATH = path.join(ORBIT_ICONS_DIR, "orbit-icons.ttf");

  const TTF = svg2ttf(fs.readFileSync(path.join(ORBIT_ICONS_DIR, "orbit-icons.svg"), "utf8"), {});
  fs.writeFileSync(TTF_PATH, Buffer.from(TTF.buffer));

  fs.writeFileSync(
    path.join(ORBIT_ICONS_DIR, "orbit-icons.woff2"),
    ttf2woff2(fs.readFileSync(TTF_PATH)),
  );
});

ttf2woff2

Convert TTF files to WOFF2 ones.

MIT
Latest version published 5 months ago

Package Health Score

79 / 100
Full package analysis

Popular ttf2woff2 functions