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

svg2ttf-new

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svg2ttf-new - npm Package Compare versions

Comparing version 5.3.0-beta.3 to 6.1.0-beta.1

7

CHANGELOG.md

@@ -1,5 +0,8 @@

5.3.0 / WIP
6.0.0 / 2021-05-27
------------------
- Generated OS/2 table version is bumped from 1 to 5, #106.
- Big thanks to @yisibl for provided notes & samples. Those caused all fixes below.
- `OS/2` table version bumped from v1 to v5 (#106).
- `usWinAscent` should include `lineGap`.
- Fixed `cubic2quad` dependency for edge cases.

@@ -6,0 +9,0 @@

@@ -23,2 +23,3 @@ 'use strict';

// OpenType spec: https://docs.microsoft.com/en-us/typography/opentype/spec/os2
function createOS2Table(font) {

@@ -33,5 +34,6 @@

var buf = new ByteBuffer(100);
var buf = new ByteBuffer(96);
buf.writeUint16(5); //version
// Version 5 is not supported in the Android 5 browser.
buf.writeUint16(4); // version
buf.writeInt16(font.avgWidth); // xAvgCharWidth

@@ -86,6 +88,2 @@ buf.writeUint16(font.weightClass); // usWeightClass

buf.writeUint16(maxContext); // usMaxContext, use at least 2 for ligatures and kerning
// if font isn't designed for multiple optical-sized variants,
// following fields should be 0x0000-0xFFFF
buf.writeUint16(0); // usLowerOpticalPointSize
buf.writeUint16(0xFFFF); // usUpperOpticalPointSize

@@ -92,0 +90,0 @@ return buf;

{
"name": "svg2ttf-new",
"version": "5.3.0-beta.3",
"version": "6.1.0-beta.1",
"description": "Converts SVG font to TTF font",

@@ -33,3 +33,3 @@ "keywords": [

"svgpath": "^2.1.5",
"xmldom": "~0.5.0"
"xmldom": "~0.6.0"
},

@@ -36,0 +36,0 @@ "devDependencies": {

@@ -1,6 +0,6 @@

svg2ttf-new
svg2ttf
=======
[![CI](https://github.com/yisibl/svg2ttf/actions/workflows/ci.yml/badge.svg)](https://github.com/yisibl/svg2ttf/actions/workflows/ci.yml)
[![NPM version](https://img.shields.io/npm/v/svg2ttf-new.svg?style=flat)](https://www.npmjs.org/package/svg2ttf-new)
[![CI](https://github.com/fontello/svg2ttf/actions/workflows/ci.yml/badge.svg)](https://github.com/fontello/svg2ttf/actions/workflows/ci.yml)
[![NPM version](https://img.shields.io/npm/v/svg2ttf.svg?style=flat)](https://www.npmjs.org/package/svg2ttf)

@@ -25,3 +25,3 @@ > Converts SVG fonts to TTF format. It was initially written for

``` bash
npm install -g svg2ttf-new
npm install -g svg2ttf
```

@@ -28,0 +28,0 @@

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