From 2eb80541fa690dbc0c4ca8e38c8ed682966cf672 Mon Sep 17 00:00:00 2001 From: Lotus Date: Wed, 9 Dec 2020 23:40:25 +0300 Subject: [PATCH] fix: partially address slnt in CSS --- scripts/google/variable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/google/variable.js b/scripts/google/variable.js index 457b8e9c732..ef31e7f6128 100644 --- a/scripts/google/variable.js +++ b/scripts/google/variable.js @@ -99,7 +99,7 @@ module.exports = function (id) { type, wdth: `${fontVariable.axes.wdth.min}% ${fontVariable.axes.wdth.max}%`, weight: `${fontVariable.axes.wght.min} ${fontVariable.axes.wght.max}`, - woff2Path: makeFontFilePath(subset, type, style), + woff2Path: makeFontFilePath(subset, type, origStyle), unicodeRange: font.unicodeRange[subset], }) cssStyle.push(cssWght) @@ -130,7 +130,7 @@ module.exports = function (id) { subset, type, weight: `${fontVariable.axes.wght.min} ${fontVariable.axes.wght.max}`, - woff2Path: makeFontFilePath(subset, type, style), + woff2Path: makeFontFilePath(subset, type, origStyle), unicodeRange: font.unicodeRange[subset], }) cssStyle.push(cssWght)