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

fontkit

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fontkit - npm Package Compare versions

Comparing version 1.5.2 to 1.5.3

2

package.json
{
"name": "fontkit",
"version": "1.5.2",
"version": "1.5.3",
"description": "An advanced font engine for Node and the browser",

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

@@ -0,1 +1,3 @@

import {binarySearch} from '../utils';
export default class KernProcessor {

@@ -43,8 +45,8 @@ constructor(font) {

case 0:
// TODO: binary search
for (let pair of s.pairs) {
if (pair.left === left && pair.right === right) {
val = pair.value;
break;
}
let pairIdx = binarySearch(s.pairs, function (pair) {
return (left - pair.left) || (right - pair.right);
});
if (pairIdx >= 0) {
val = s.pairs[pairIdx].value;
}

@@ -51,0 +53,0 @@

@@ -37,3 +37,3 @@ import unicode from 'unicode-properties';

if (this._font.GDEF) {
if (this._font.GDEF && this._font.GDEF.glyphClassDef) {
// TODO: clean this up

@@ -40,0 +40,0 @@ let classID = OTProcessor.prototype.getClassID(id, this._font.GDEF.glyphClassDef);

Sorry, the diff of this file is too big to display

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