From 674f6da275ba8f4bbbeea08dd39f7e0162daba07 Mon Sep 17 00:00:00 2001 From: codecalm Date: Wed, 22 Feb 2023 23:43:07 +0100 Subject: [PATCH] fix: webfont icons has wrong width fixes: #14, #507 --- packages/icons-webfont/.build/build-outline.mjs | 4 ++-- packages/icons-webfont/.build/build-webfont.mjs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/icons-webfont/.build/build-outline.mjs b/packages/icons-webfont/.build/build-outline.mjs index 4128a02db..993ea03ed 100644 --- a/packages/icons-webfont/.build/build-outline.mjs +++ b/packages/icons-webfont/.build/build-outline.mjs @@ -28,11 +28,11 @@ const buildOutline = async () => { } await outlineStroke(contents, { - optCurve: false, + optCurve: true, steps: 4, round: 0, centerHorizontally: true, - fixedWidth: true, + fixedWidth: false, color: 'black' }).then(outlined => { if (unicode) { diff --git a/packages/icons-webfont/.build/build-webfont.mjs b/packages/icons-webfont/.build/build-webfont.mjs index 4c61d6b0a..c136acdfd 100644 --- a/packages/icons-webfont/.build/build-webfont.mjs +++ b/packages/icons-webfont/.build/build-webfont.mjs @@ -16,8 +16,8 @@ webfont({ normalize: true, fontHeight, descent: 100, - ascent: 986.5, - fixedWidth: true + ascent: 900, + fixedWidth: false }) .then((result) => { formats.forEach(format => {