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

fontpath

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fontpath - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

8

lib/index.js

@@ -54,3 +54,3 @@ var fs = require('fs');

}
console.log("Found", kernings.length, "kerning pairs");
// console.log("Found", kernings.length, "kerning pairs");
return kernings;

@@ -68,4 +68,4 @@ }

if ((face.face_flags & ft.FACE_FLAG_SCALABLE) !== ft.FACE_FLAG_SCALABLE)
console.warn("Font is not scalable");
// if ((face.face_flags & ft.FACE_FLAG_SCALABLE) !== ft.FACE_FLAG_SCALABLE)
// console.warn("Font is not scalable");

@@ -113,3 +113,3 @@ var codesToUse = options.charcodes;

} else {
console.warn("No kerning information in font file.");
// console.warn("No kerning information in font file.");
dataObj.kerning = [];

@@ -116,0 +116,0 @@ }

@@ -62,3 +62,3 @@ //Exports to a minimal JSON format that is useful for web purposes

if (face.glyph.format !== ft.GLYPH_FORMAT_OUTLINE) {
console.warn("Charcode", code, "("+String.fromCharCode(code)+") has no outline");
// console.warn("Charcode", code, "("+String.fromCharCode(code)+") has no outline");
return [];

@@ -87,3 +87,3 @@ }

if (face.glyph.format !== ft.GLYPH_FORMAT_OUTLINE) {
console.warn("Charcode", code, "("+String.fromCharCode(code)+") has no outline");
// console.warn("Charcode", code, "("+String.fromCharCode(code)+") has no outline");
return [];

@@ -90,0 +90,0 @@ }

{
"name": "fontpath",
"version": "0.0.4",
"version": "0.0.5",
"description": "Generates path and kerning info from a font",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is not supported yet

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