From d7679cff3a0e54e27e4415e5b340b16afeedbf86 Mon Sep 17 00:00:00 2001 From: Bobby Date: Wed, 22 Apr 2026 07:04:52 +0530 Subject: Add Literata and Inter fonts, title-screen audio MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fonts (SIL Open Font License; licenses preserved alongside the files): static/fonts/Literata-Regular.ttf body — 400 weight static/fonts/Literata-Italic.ttf body — 400 italic static/fonts/Literata-Medium.ttf body — 500 weight static/fonts/Inter-Regular.ttf UI chrome — 400 weight static/fonts/Inter-Medium.ttf UI chrome — 500 weight static/fonts/Literata.OFL.txt static/fonts/Inter.OFL.txt Google Fonts' Inter distribution is optical-size-tiered — the 18pt variants are tuned for the 13–18px range our UI uses, so they're aliased as the base "Inter" family. Crimson Pro (memoir body) is not yet sourced; its @font-face block and preload hint both drop out of app.css / app.html for now and land when the memoir screen is built. app.css swaps the woff2 references for ttf (format: 'truetype'), and the @font-face comment now reflects the reality of what's on disk. app.html preloads the ttf variants. svelte.config.js drops the prerender handleHttpError shim that was tolerating missing /fonts/ 404s — the files exist now, so the build should fail loudly if any preloaded font goes missing. Title-screen audio: static/audio/title/piano-relaxing.mp3 — "Piano Relaxing" by atlasaudio, Pixabay Content License static/audio/title/piano-relaxing.license.txt — Pixabay license certificate Note on design: docs/17-first-hour.md said "no menu music" on the title screen. Running with this addition per the director's current direction (the design docs reflect an earlier stage of thinking). --- app/app.html | 6 +- static/audio/title/piano-relaxing.license.txt | 34 ++++++++++ static/audio/title/piano-relaxing.mp3 | Bin 0 -> 4353462 bytes static/css/app.css | 35 +++------- static/fonts/Inter-Medium.ttf | Bin 0 -> 343200 bytes static/fonts/Inter-Regular.ttf | Bin 0 -> 342680 bytes static/fonts/Inter.OFL.txt | 93 ++++++++++++++++++++++++++ static/fonts/Literata-Italic.ttf | Bin 0 -> 248156 bytes static/fonts/Literata-Medium.ttf | Bin 0 -> 255468 bytes static/fonts/Literata-Regular.ttf | Bin 0 -> 255252 bytes static/fonts/Literata.OFL.txt | 93 ++++++++++++++++++++++++++ svelte.config.js | 9 --- 12 files changed, 234 insertions(+), 36 deletions(-) create mode 100644 static/audio/title/piano-relaxing.license.txt create mode 100644 static/audio/title/piano-relaxing.mp3 create mode 100644 static/fonts/Inter-Medium.ttf create mode 100644 static/fonts/Inter-Regular.ttf create mode 100644 static/fonts/Inter.OFL.txt create mode 100644 static/fonts/Literata-Italic.ttf create mode 100644 static/fonts/Literata-Medium.ttf create mode 100644 static/fonts/Literata-Regular.ttf create mode 100644 static/fonts/Literata.OFL.txt diff --git a/app/app.html b/app/app.html index 328f243..5f5f1cb 100644 --- a/app/app.html +++ b/app/app.html @@ -10,9 +10,9 @@ - - - + + + Hollowdark %sveltekit.head% diff --git a/static/audio/title/piano-relaxing.license.txt b/static/audio/title/piano-relaxing.license.txt new file mode 100644 index 0000000..2bc5da3 --- /dev/null +++ b/static/audio/title/piano-relaxing.license.txt @@ -0,0 +1,34 @@ +PIXABAY LICENSE CERTIFICATE +============================================== + +This document confirms the download of an audio file pursuant to the Content License as defined in the Pixabay Terms of Service available at https://pixabay.com/service/terms/ + +Licensor's Username: +https://pixabay.com/users/atlasaudio-54514918/ + +Licensee: +u_cbmfevvluk + +Audio File Title: +Piano Relaxing + +Audio File URL: +https://pixabay.com/music/ambient-piano-relaxing-510242/ + +Audio File ID: +510242 + +Date of download: +2026-04-22 01:19:46 UTC + +Pixabay, a Canva Germany GmbH brand +Pappelallee 78/79 +10437 Berlin +Germany + +Pixabay is a user-contributed stock content website. The above-named Licensor is responsible for this audio file. Pixabay monitors uploaded audio files only to a reasonable extent. Pixabay cannot be held responsible for the acts or omissions of its users and does not represent or warrant that any required third-party consents or licenses have been obtained. + +For any queries related to this document please contact Pixabay via info@pixabay.com. + + +==== THIS IS NOT A TAX RECEIPT OR INVOICE ==== \ No newline at end of file diff --git a/static/audio/title/piano-relaxing.mp3 b/static/audio/title/piano-relaxing.mp3 new file mode 100644 index 0000000..44e26c9 Binary files /dev/null and b/static/audio/title/piano-relaxing.mp3 differ diff --git a/static/css/app.css b/static/css/app.css index 0714faf..6ea23f1 100644 --- a/static/css/app.css +++ b/static/css/app.css @@ -176,9 +176,12 @@ button:focus-visible { /* --------------------------------------------------------------------------- * Font-face declarations * - * Font files ship in static/fonts/ and are sourced separately (Literata, - * Inter, Crimson Pro — subset to Latin basics + punctuation). Until they - * land, the body falls back through the font-family cascade above. + * Literata and Inter ship in static/fonts/ under the SIL Open Font License + * (see static/fonts/Literata.OFL.txt and Inter.OFL.txt). Inter's static + * distribution is optical-size-tiered; the 18pt variants are tuned for + * the 13–18px range our UI uses and are aliased here as the base "Inter". + * Crimson Pro (memoir body) is not yet sourced — the memoir view will add + * its @font-face block when the screen is built. * ------------------------------------------------------------------------ */ @font-face { @@ -186,7 +189,7 @@ button:focus-visible { font-style: normal; font-weight: 400; font-display: swap; - src: url('../fonts/Literata-Regular.woff2') format('woff2'); + src: url('../fonts/Literata-Regular.ttf') format('truetype'); } @font-face { @@ -194,7 +197,7 @@ button:focus-visible { font-style: italic; font-weight: 400; font-display: swap; - src: url('../fonts/Literata-Italic.woff2') format('woff2'); + src: url('../fonts/Literata-Italic.ttf') format('truetype'); } @font-face { @@ -202,7 +205,7 @@ button:focus-visible { font-style: normal; font-weight: 500; font-display: swap; - src: url('../fonts/Literata-Medium.woff2') format('woff2'); + src: url('../fonts/Literata-Medium.ttf') format('truetype'); } @font-face { @@ -210,7 +213,7 @@ button:focus-visible { font-style: normal; font-weight: 400; font-display: swap; - src: url('../fonts/Inter-Regular.woff2') format('woff2'); + src: url('../fonts/Inter-Regular.ttf') format('truetype'); } @font-face { @@ -218,21 +221,5 @@ button:focus-visible { font-style: normal; font-weight: 500; font-display: swap; - src: url('../fonts/Inter-Medium.woff2') format('woff2'); -} - -@font-face { - font-family: 'Crimson Pro'; - font-style: normal; - font-weight: 400; - font-display: swap; - src: url('../fonts/CrimsonPro-Regular.woff2') format('woff2'); -} - -@font-face { - font-family: 'Crimson Pro'; - font-style: italic; - font-weight: 400; - font-display: swap; - src: url('../fonts/CrimsonPro-Italic.woff2') format('woff2'); + src: url('../fonts/Inter-Medium.ttf') format('truetype'); } diff --git a/static/fonts/Inter-Medium.ttf b/static/fonts/Inter-Medium.ttf new file mode 100644 index 0000000..71d9017 Binary files /dev/null and b/static/fonts/Inter-Medium.ttf differ diff --git a/static/fonts/Inter-Regular.ttf b/static/fonts/Inter-Regular.ttf new file mode 100644 index 0000000..ce097c8 Binary files /dev/null and b/static/fonts/Inter-Regular.ttf differ diff --git a/static/fonts/Inter.OFL.txt b/static/fonts/Inter.OFL.txt new file mode 100644 index 0000000..d05ec4b --- /dev/null +++ b/static/fonts/Inter.OFL.txt @@ -0,0 +1,93 @@ +Copyright 2020 The Inter Project Authors (https://github.com/rsms/inter) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +https://openfontlicense.org + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/static/fonts/Literata-Italic.ttf b/static/fonts/Literata-Italic.ttf new file mode 100644 index 0000000..5b4f2f6 Binary files /dev/null and b/static/fonts/Literata-Italic.ttf differ diff --git a/static/fonts/Literata-Medium.ttf b/static/fonts/Literata-Medium.ttf new file mode 100644 index 0000000..73c0327 Binary files /dev/null and b/static/fonts/Literata-Medium.ttf differ diff --git a/static/fonts/Literata-Regular.ttf b/static/fonts/Literata-Regular.ttf new file mode 100644 index 0000000..acfc1a6 Binary files /dev/null and b/static/fonts/Literata-Regular.ttf differ diff --git a/static/fonts/Literata.OFL.txt b/static/fonts/Literata.OFL.txt new file mode 100644 index 0000000..6064f66 --- /dev/null +++ b/static/fonts/Literata.OFL.txt @@ -0,0 +1,93 @@ +Copyright 2017 The Literata Project Authors (https://github.com/googlefonts/literata) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +https://openfontlicense.org + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/svelte.config.js b/svelte.config.js index 64109df..9c3f3fe 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -20,15 +20,6 @@ const config = { paths: { base: BASE_PATH }, - prerender: { - handleHttpError: ({ path, message }) => { - // Font files ship separately from the codebase (see static/css/app.css - // @font-face block). Tolerate missing font files during prerender so - // the build doesn't block until they land in static/fonts/. - if (path.includes('/fonts/')) return - throw new Error(message) - } - }, files: { assets: 'static', appTemplate: 'app/app.html', -- cgit v1.2.3