dnm-font-manager
Advanced tools
Comparing version 0.4.8 to 0.4.9
@@ -258,3 +258,4 @@ 'use strict'; | ||
_options$customDirs = options.customDirs, | ||
customDirs = _options$customDirs === undefined ? [] : _options$customDirs; | ||
customDirs = _options$customDirs === undefined ? [] : _options$customDirs, | ||
fontkit = options.fontkit; | ||
@@ -330,4 +331,4 @@ | ||
if (!fontMeta) { | ||
if (_this.options.fontkit) { | ||
_this.options.fontkit.open(file, null, function (err2, fontMeta2) { | ||
if (fontkit) { | ||
fontkit.open(file, null, function (err2, fontMeta2) { | ||
if (!fontMeta2) { | ||
@@ -362,4 +363,4 @@ debug('Error reading font ' + file, err2); | ||
try { | ||
if (_this.options.fontkit) { | ||
var fontMeta2 = _this.options.fontkit.openSync(file); | ||
if (fontkit) { | ||
var fontMeta2 = fontkit.openSync(file); | ||
var fonts = fontMeta2.fonts || fontMeta2; | ||
@@ -366,0 +367,0 @@ var fontInfos = fonts.map(function (font) { |
{ | ||
"name": "dnm-font-manager", | ||
"version": "0.4.8", | ||
"version": "0.4.9", | ||
"description": "Search system fonts with family and style using pure JavaScript, forked from rBurgett/system-font-families", | ||
@@ -5,0 +5,0 @@ "main": "dist/main.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
640
46094