Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
svg2ttf
Advanced tools
Readme
Converts SVG fonts to TTF format. It was initially written for Fontello, but you can find it useful for your projects.
For developpers:
Internal API is similar to FontForge's one. Since primary goal is generating iconic fonts, sources can lack some specific TTF/OTF features, like kerning and so on. Anyway, current code is a good base for development, because it will save you tons of hours to implement correct writing & optimizing TTF tables.
Install:
npm install -g svg2ttf
Usage example:
svg2ttf fontello.svg fontello.ttf
svgFontString
- SVG font contentoptions
copyright
- copyright string (optional)description
- description string (optional)ts
- Unix timestamp (in seconds) to override creation time (optional)url
- manufacturer url (optional)version
- font version string, can be Version x.y
or x.y
.buf
- internal byte buffer
object, similar to DataView. It's buffer
property is Uin8Array
or Array
with ttf content.Example:
var fs = require('fs');
var svg2ttf = require('svg2ttf');
var ttf = svg2ttf(fs.readFileSync('myfont.svg', 'utf8'), {});
fs.writeFileSync('myfont.ttf', new Buffer(ttf.buffer));
Available as part of the Tidelift Subscription.
The maintainers of svg2ttf
and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.
FAQs
Converts SVG font to TTF font
The npm package svg2ttf receives a total of 168,675 weekly downloads. As such, svg2ttf popularity was classified as popular.
We found that svg2ttf demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.