From b8cf046ca6f1c7fefa11f37d39675220a8b1e1d5 Mon Sep 17 00:00:00 2001 From: Toby Chui Date: Wed, 24 Apr 2024 11:34:00 +0800 Subject: [PATCH] Fixed offline font bug - Fixed offline font bug - Set to pre-release embedded webui --- src/main.go | 2 +- src/web/script/semantic/offline-font.css | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.go b/src/main.go index 1da00f9..25cafd7 100644 --- a/src/main.go +++ b/src/main.go @@ -53,7 +53,7 @@ var ( name = "Zoraxy" version = "3.0.2" nodeUUID = "generic" - development = true //Set this to false to use embedded web fs + development = false //Set this to false to use embedded web fs bootTime = time.Now().Unix() /* diff --git a/src/web/script/semantic/offline-font.css b/src/web/script/semantic/offline-font.css index 060fcec..d6c4de9 100644 --- a/src/web/script/semantic/offline-font.css +++ b/src/web/script/semantic/offline-font.css @@ -51,7 +51,7 @@ font-family: 'Lato'; font-style: normal; font-weight: 700; - src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v17/S6u9w4BMUTPHh6UVSwaPGR_p.woff2) format('woff2'); + src: local('Lato Bold'), local('Lato-Bold'), url(fonts/S6u9w4BMUTPHh6UVSwaPGR_p.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @@ -59,6 +59,6 @@ font-family: 'Lato'; font-style: normal; font-weight: 700; - src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v17/S6u9w4BMUTPHh6UVSwiPGQ.woff2) format('woff2'); + src: local('Lato Bold'), local('Lato-Bold'), url(fonts/S6u9w4BMUTPHh6UVSwiPGQ.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }