From d51c26ea9aea73e0de51e94943b1f23d2a223005 Mon Sep 17 00:00:00 2001 From: Bu Yuan <541908090@qq.com> Date: Fri, 20 Mar 2026 22:43:27 +0800 Subject: [PATCH 1/2] fix(lucide-fonts): correct icon mappings in index.html and unicode.html (#4160) Fixes lucide-icons/lucide#4154 The font mapping files were incorrectly mapping icon names to unicode values. For example, message-circle-check was incorrectly pointing to database-search. This was introduced in version 0.576 by commit efa1f252 which moved the endCodePoint calculation inside the Promise.all callback, causing race conditions where multiple icons could receive the same codepoint. The fix moves endCodePoint calculation outside the Promise.all block so it's calculated once before processing all icons, ensuring each icon gets a unique codepoint. Co-authored-by: Clawdbot Co-authored-by: Eric Fennis --- tools/build-font/src/allocateCodepoints.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/build-font/src/allocateCodepoints.ts b/tools/build-font/src/allocateCodepoints.ts index 3f2480a51..1eb9a75e7 100644 --- a/tools/build-font/src/allocateCodepoints.ts +++ b/tools/build-font/src/allocateCodepoints.ts @@ -26,10 +26,10 @@ export async function allocateCodePoints({ }: AllocateCodePointsOptions): Promise { const baseCodePoints = await getLatestCodePoints(); + const endCodePoint = Math.max(...Object.values(baseCodePoints)); + await Promise.all( iconsWithAliases.map(async ([iconName, aliases]) => { - const endCodePoint = Math.max(...Object.values(baseCodePoints)); - if (!baseCodePoints[iconName]) { console.log('Code point not found creating new one for', iconName); baseCodePoints[iconName] = endCodePoint + 1; From f9406068fb99993a4951a3f840c5e27e7c862129 Mon Sep 17 00:00:00 2001 From: Lukas Kalbertodt Date: Fri, 20 Mar 2026 16:28:00 +0100 Subject: [PATCH 2/2] Fix formatting of `` element in two icons that were inconsistent (#4166) These two icons were the only ones that didn't start with exactly So I brought them in line. --- icons/circle-pile.svg | 15 ++++++++++++--- icons/gamepad-directional.svg | 15 ++++++++++++--- 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/icons/circle-pile.svg b/icons/circle-pile.svg index a9e3ddf88..f070df442 100644 --- a/icons/circle-pile.svg +++ b/icons/circle-pile.svg @@ -1,9 +1,18 @@ - + - \ No newline at end of file + diff --git a/icons/gamepad-directional.svg b/icons/gamepad-directional.svg index f5ca8f013..f7626066b 100644 --- a/icons/gamepad-directional.svg +++ b/icons/gamepad-directional.svg @@ -1,5 +1,14 @@ - + - \ No newline at end of file +