From 4e03d262c04018cdce7b785e9cb25974c1954374 Mon Sep 17 00:00:00 2001 From: Danila Poyarkov Date: Sun, 1 Mar 2026 03:25:50 +0300 Subject: [PATCH] Register system font faces for CSS preview, fix picker highlight width --- components.d.ts | 1 + src/components/FontPicker.vue | 104 ++++++++++++++++++ .../properties/TypographySection.vue | 88 +-------------- src/engine/fonts.ts | 12 +- 4 files changed, 122 insertions(+), 83 deletions(-) create mode 100644 src/components/FontPicker.vue diff --git a/components.d.ts b/components.d.ts index 97cf61985..983c76702 100644 --- a/components.d.ts +++ b/components.d.ts @@ -20,6 +20,7 @@ declare module 'vue' { ExportSection: typeof import('./src/components/properties/ExportSection.vue')['default'] FillPicker: typeof import('./src/components/FillPicker.vue')['default'] FillSection: typeof import('./src/components/properties/FillSection.vue')['default'] + FontPicker: typeof import('./src/components/FontPicker.vue')['default'] IconLucideALargeSmall: typeof import('~icons/lucide/a-large-small')['default'] IconLucideAlignCenter: typeof import('~icons/lucide/align-center')['default'] IconLucideAlignHorizontalJustifyCenter: typeof import('~icons/lucide/align-horizontal-justify-center')['default'] diff --git a/src/components/FontPicker.vue b/src/components/FontPicker.vue new file mode 100644 index 000000000..5df8b201a --- /dev/null +++ b/src/components/FontPicker.vue @@ -0,0 +1,104 @@ + + + diff --git a/src/components/properties/TypographySection.vue b/src/components/properties/TypographySection.vue index 34cc8e634..55b69de1c 100644 --- a/src/components/properties/TypographySection.vue +++ b/src/components/properties/TypographySection.vue @@ -1,29 +1,13 @@