From 7c033863803e2026bb75c7274d0f3cf91401931f Mon Sep 17 00:00:00 2001 From: lauchmelder Date: Thu, 6 Mar 2025 00:15:03 +0100 Subject: [PATCH] hack in json support --- client/src/components/glyphview.svelte | 79 ++++++++++++++++++- server/Cargo.lock | 1 + server/Cargo.toml | 1 + server/src/font.rs | 2 +- server/src/font/glyph_data.rs | 78 +++++++++++------- server/src/lib.rs | 2 +- server/src/webview/main.rs | 14 ++-- server/src/writer.rs | 20 +++-- server/src/writer/json.rs | 103 ++++++++++++++++++++++++ server/src/writer/svg.rs | 105 ------------------------- 10 files changed, 254 insertions(+), 151 deletions(-) create mode 100644 server/src/writer/json.rs delete mode 100644 server/src/writer/svg.rs diff --git a/client/src/components/glyphview.svelte b/client/src/components/glyphview.svelte index 48ead6d..0ba018c 100644 --- a/client/src/components/glyphview.svelte +++ b/client/src/components/glyphview.svelte @@ -1,5 +1,66 @@
-{@html glyphSVG } + + + {#each glyphData.contours as contour} + + {/each} +