dnm-font-manager
Advanced tools
Comparing version 0.4.6 to 0.4.7
@@ -413,2 +413,3 @@ 'use strict'; | ||
fonts.forEach(function (font) { | ||
font = _path2.default.resolve(font); | ||
try { | ||
@@ -451,3 +452,3 @@ var _filterFontInfos = filterFontInfos(_ttfinfo2.default.getSync(font).tables.name), | ||
missingFonts.forEach(function (font, index) { | ||
vbsContent += 'sources(' + index + ') = "' + _path2.default.resolve(font.path) + '"\n'; | ||
vbsContent += 'sources(' + index + ') = "' + font.path + '"\n'; | ||
}); | ||
@@ -493,6 +494,3 @@ vbsContent += '\n Set regEx = New RegExp\n regEx.IgnoreCase = True\n regEx.Pattern = "([\\w\\s]+?)(_[^_]*)?(\\.(ttf|otf))$"\n FOR EACH FontFile IN sources\n fontFileName = ofso.GetFileName(FontFile)\n IF regEx.Test(fontFileName) THEN \n Set objMatch = regEx.Execute(fontFileName)\n otherName = Replace(fontFileName,objMatch.Item(0).Submatches(2),"") & "_0" & objMatch.Item(0).Submatches(2)\n normalFontPath = oWinFonts.Self.Path & "\\" & fontFileName\n normalFontPath2 = oWinFonts2 & "\\" & fontFileName\n otherFontPath = oWinFonts.Self.Path & "\\" & otherName\n otherFontPath2 = oWinFonts2 & "\\" & otherName\n IF NOT ofso.FileExists(normalFontPath) AND NOT ofso.FileExists(normalFontPath2) AND NOT ofso.FileExists(otherFontPath) AND NOT ofso.FileExists(otherFontPath2) THEN\n oWinFonts.CopyHere FontFile\n nInstall = nInstall + 1\n END IF\n END IF\n NEXT\n wscript.echo nInstall\n '; | ||
if (found.length > 0) { | ||
foundFonts.push(found[0]); | ||
installed.push(missingFonts[_i].path); | ||
} else newMissingFonts.push(missingFonts[_i]); | ||
if (found.length > 0) installed.push(_extends({}, found[0], { path: missingFonts[_i].path }));else newMissingFonts.push(missingFonts[_i]); | ||
} | ||
@@ -499,0 +497,0 @@ resolve({ |
{ | ||
"name": "dnm-font-manager", | ||
"version": "0.4.6", | ||
"version": "0.4.7", | ||
"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
37825
458