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));

    path.join(ORBIT_ICONS_DIR, "orbit-icons.woff2"),


Convert TTF files to WOFF2 ones.

Latest version published 1 year ago

Package Health Score

65 / 100
Full package analysis

Popular ttf2woff2 functions