dnm-font-manager
Advanced tools
Comparing version 0.5.9 to 0.5.10
@@ -548,7 +548,6 @@ 'use strict'; | ||
var postscripts_not_found = []; | ||
postscriptName.forEach(function (new_postscript_name, index) { | ||
postscriptName.forEach(function (new_postscript_name) { | ||
var postscript_found = false; | ||
var return_font = { | ||
family: family, | ||
style: style ? style[index] : null, | ||
family: fonts[i].family, | ||
postscriptName: new_postscript_name | ||
@@ -560,2 +559,3 @@ }; | ||
found_font = true; | ||
return_font.style = _key2; | ||
return_font.file = files[_key2]; | ||
@@ -658,7 +658,5 @@ found.push(return_font); | ||
var _fontInfos = fontInfos, | ||
family = _fontInfos.family, | ||
subFamily = _fontInfos.subFamily, | ||
postscript = _fontInfos.postscript; | ||
searchFonts.push({ family: family, style: subFamily, postscriptName: postscript, path: font }); | ||
searchFonts.push({ postscriptName: postscript, path: font }); | ||
} else fontsToInstall.push(font); | ||
@@ -665,0 +663,0 @@ } catch (e) { |
{ | ||
"name": "dnm-font-manager", | ||
"version": "0.5.9", | ||
"version": "0.5.10", | ||
"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", |
48909
691