From fa2726a1df2d1c3597451edfe3f6493870c1a947 Mon Sep 17 00:00:00 2001 From: Steffen Becker Date: Wed, 12 Aug 2026 13:47:13 +0200 Subject: [PATCH] fix: Word's pi for the Equation button Word's Equation button is a pi, as its Symbol button beside it is an omega. Same canvas, baseline and weight as that omega, at font-size 20 rather than its 14: pi is lowercase, so at one size its x-height measures 1.44x smaller. --- src/lib/components/ribbon/icons.ts | 1 - src/lib/components/ribbon/tabs/InsertTab.svelte | 11 ++++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/lib/components/ribbon/icons.ts b/src/lib/components/ribbon/icons.ts index ee97929..1b5144a 100644 --- a/src/lib/components/ribbon/icons.ts +++ b/src/lib/components/ribbon/icons.ts @@ -96,7 +96,6 @@ export const STROKED = { header: ['M2 2.5h12v3H2z', 'M2 8h12M2 11h8'], footer: ['M2 10.5h12v3H2z', 'M2 5h12M2 8h8'], pageNumber: ['M3.25 1.75h9.5v12.5h-9.5z', 'M6.9 6.4 8 5.3v5.2', 'M6.75 10.5h2.5'], - formula: ['M9 3.5h4', 'M9.5 8h3', 'M2.5 13.5c1.6 0 2-.9 2.4-2.4L7.2 3.4C7.5 2.3 8 2 8.8 2', 'M2.5 6.5h4'], pageBreak: ['M2 4.5h12M2 11.5h12', 'M8 6.5v3', 'M6.4 8.2 8 9.8l1.6-1.6'], } as const; diff --git a/src/lib/components/ribbon/tabs/InsertTab.svelte b/src/lib/components/ribbon/tabs/InsertTab.svelte index 465cdec..200dd68 100644 --- a/src/lib/components/ribbon/tabs/InsertTab.svelte +++ b/src/lib/components/ribbon/tabs/InsertTab.svelte @@ -276,7 +276,7 @@ /> {t().ribbon.symbol} - + + +{#snippet equationIcon()} + +{/snippet} +