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 - npm Package Compare versions

Comparing version 6.0.0 to 6.0.1

6

CHANGELOG.md

@@ -0,1 +1,7 @@

6.0.1 / 2021-06-17
------------------
- `OS/2` table version reduced (5 => 4), #110.
6.0.0 / 2021-05-27

@@ -2,0 +8,0 @@ ------------------

10

lib/ttf/tables/os2.js

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

2

package.json
{
"name": "svg2ttf",
"version": "6.0.0",
"version": "6.0.1",
"description": "Converts SVG font to TTF font",

@@ -5,0 +5,0 @@ "keywords": [

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