From bcdb202639ab02d021aef362b12db52c50b4d9b6 Mon Sep 17 00:00:00 2001 From: Laytan Laats Date: Thu, 4 Jul 2024 16:50:58 +0200 Subject: [PATCH] vendor/fontstash: fix 'AddFont' proc group for JS target --- vendor/fontstash/fontstash_other.odin | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 vendor/fontstash/fontstash_other.odin diff --git a/vendor/fontstash/fontstash_other.odin b/vendor/fontstash/fontstash_other.odin new file mode 100644 index 000000000..1c2ca3f28 --- /dev/null +++ b/vendor/fontstash/fontstash_other.odin @@ -0,0 +1,10 @@ +//+build js +package fontstash + +AddFontPath :: proc( + ctx: ^FontContext, + name: string, + path: string, +) -> int { + panic("fontstash.AddFontPath is unsupported on the JS target") +}