Skip to content

Commit

Permalink
removed font naming issue
Browse files Browse the repository at this point in the history
  • Loading branch information
inlife committed Dec 13, 2024
1 parent 1b3b8e4 commit 7861a9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nexrender-action-fonts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const installWin = async (settings, job, fontpath) => {
settings.logger.log(`[action-fonts] Installing font ${fontpath} to ${fontdest}...`);
fs.copyFileSync(fontpath, fontdest);

const fontdisplayname = path.basename(fontpath, path.extname(fontpath)).replace(/-/g, " ");
const fontdisplayname = path.basename(fontpath, path.extname(fontpath));
const fontreg = `reg add "HKCU\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Fonts" /v "${fontdisplayname} (TrueType)" /t REG_SZ /d "${fontdest}" /f`;

execSync(fontreg);
Expand Down

0 comments on commit 7861a9e

Please sign in to comment.