Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svg2ttf

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svg2ttf

Converts SVG font to TTF font

  • 6.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
139K
increased by72.86%
Maintainers
1
Weekly downloads
 
Created

What is svg2ttf?

The svg2ttf npm package is a tool that converts SVG (Scalable Vector Graphics) fonts to TTF (TrueType Font) format. This is useful for developers who need to use custom fonts in their web or mobile applications and want to ensure compatibility across different platforms.

What are svg2ttf's main functionalities?

Convert SVG to TTF

This feature allows you to convert an SVG font file to a TTF font file. The code reads an SVG file, converts it to TTF format, and then writes the TTF file to the specified path.

const svg2ttf = require('svg2ttf');
const fs = require('fs');

const svgFont = fs.readFileSync('path/to/font.svg', 'utf8');
const ttf = svg2ttf(svgFont, {});
fs.writeFileSync('path/to/font.ttf', Buffer.from(ttf.buffer));

Other packages similar to svg2ttf

Keywords

FAQs

Package last updated on 21 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc