diff --git a/LICENSE b/LICENSE index 8e06a62..2e7865b 100644 --- a/LICENSE +++ b/LICENSE @@ -19,3 +19,12 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +--- + +Third-party components + +This project bundles the IBM Plex Sans and IBM Plex Mono fonts +(frontend/src/fonts/*.woff2), Copyright 2019 IBM Corp., licensed under the +SIL Open Font License 1.1 — not under the MIT License above. The full font +license is in frontend/src/fonts/OFL.txt and at https://scripts.sil.org/OFL. diff --git a/README.de.md b/README.de.md index 6f9613e..a7cca53 100644 --- a/README.de.md +++ b/README.de.md @@ -149,4 +149,6 @@ via Actions ist für private Repos nur mit kostenpflichtigem Plan verfügbar). ## Lizenz -MIT — siehe [LICENSE](LICENSE). © 2026 Michael Hönnig. +MIT — siehe [LICENSE](LICENSE). © 2026 Michael Hönnig. Die mitgelieferten +IBM-Plex-Schriften stehen unter der SIL Open Font License 1.1 (siehe +[LICENSE](LICENSE) und `frontend/src/fonts/OFL.txt`). diff --git a/README.md b/README.md index 1fb19a2..68ed5bf 100644 --- a/README.md +++ b/README.md @@ -150,4 +150,6 @@ is only available for private repos on a paid plan). ## License -MIT — see [LICENSE](LICENSE). © 2026 Michael Hönnig. +MIT — see [LICENSE](LICENSE). © 2026 Michael Hönnig. The bundled IBM Plex fonts +are under the SIL Open Font License 1.1 (see [LICENSE](LICENSE) and +`frontend/src/fonts/OFL.txt`). diff --git a/docs/DECISIONS.md b/docs/DECISIONS.md index a8f40ab..d022520 100644 --- a/docs/DECISIONS.md +++ b/docs/DECISIONS.md @@ -285,3 +285,32 @@ aktiv). liest `../docs/brand/favicon.svg` und ersetzt den `` durch eine `data:`-URI — so bleibt die Brand-Quelle unverändert und die Ausgabe eine einzige Datei.) + +## D20 — Schriften lokal einbetten statt von Google Fonts laden +Die Seite lud IBM Plex Sans/Mono über einen `` von `fonts.googleapis.com` +(zzgl. Font-Dateien von `fonts.gstatic.com`). Das überträgt bei **jedem** +Seitenaufruf die **IP-Adresse des Besuchers an Google (USA)** — ohne +Einwilligung und ohne Notwendigkeit (vgl. LG München I, 3 O 17493/20). Das +widerspricht einer datensparsamen Datenschutzerklärung ohne Drittanbieter- +Einbindung und zugleich dem Selbstverständnis aus D19/SPEC §9 („keine externen +Ressourcen"). + +**Entscheidung: Schriften self-hosten.** Die tatsächlich genutzten Schnitte +(Sans 400/500/600, Mono 400/500) liegen als `woff2` unter +`frontend/src/fonts/`, eingebunden per `@font-face` in `style.css` mit +`font-display:swap`. Bezogen aus den OFL-lizenzierten `@fontsource`-Paketen +(nur per `npm pack` gezogen — **keine** neue Projekt-Abhängigkeit; die Dateien +sind eingecheckte Assets), Lizenztext in `fonts/OFL.txt`. Subsets **latin + +latin-ext** mit den `unicode-range`-Werten von fontsource decken DE/EN/ES/FR/PL; +nicht-lateinische UI-Sprachen (RU/HI/ZH/JA) fielen schon vorher auf `system-ui` +zurück (IBM Plex latin enthält diese Schriftsysteme nicht), also keine +Regression. Der Dev-Server liefert die `woff2` lokal aus; `vite build` inlint +sie als `data:font/woff2`-URIs in die eine `dist/index.html` (D19) — der +deployte Stand macht damit **keinen** externen Request mehr (verifiziert: 0 +Treffer `googleapis`/`gstatic`, 10 inline-`woff2`). Kostet ~204 KB Fonts +(dist 89 → 320 KB, gzip ~208 KB) — bewusst in Kauf genommen für Datenschutz und +Standalone-Tauglichkeit (`file://`). + +Verworfene Alternative: Google-Link ersatzlos streichen und nur die System- +Schrift (`system-ui`) nutzen — spart die 204 KB, gibt aber die einheitliche +Markentypografie (IBM Plex, BRAND) auf. diff --git a/frontend/CLAUDE.md b/frontend/CLAUDE.md index 17f2488..a8d023d 100644 --- a/frontend/CLAUDE.md +++ b/frontend/CLAUDE.md @@ -31,6 +31,11 @@ verworfene Elemente. Quelle sind ES-Module unter `src/`; `index.html` ist der - Design: Farben/Typografie beibehalten (CSS-Variablen, IBM Plex); Statusfarben sind in SPEC §4 normiert. Marke nach ../brand/BRAND.md; Pastelltöne nie im Logo. +- IBM Plex ist **lokal eingebettet** (`src/fonts/*.woff2`, `@font-face` in + `style.css`), **nicht** von Google Fonts geladen — kein externer Request, + keine IP an Dritte (Datenschutz, D20). Keinen `googleapis`-`` wieder + einführen. Neue Schnitte: `woff2` per `npm pack @fontsource/…` beziehen (keine + Projekt-Abhängigkeit, Dateien einchecken) und `@font-face` ergänzen. ## Stolperfallen - Abzweig-Linien zielen auf die **Knotenmitte** (fester 23-px-Offset, diff --git a/frontend/index.html b/frontend/index.html index 47c9e18..7fe293e 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -6,7 +6,6 @@ Werkbaum – WBS-Editor für Projektstrukturplan & Feature-Tree (Und/Oder-Baum) - diff --git a/frontend/src/fonts/OFL.txt b/frontend/src/fonts/OFL.txt new file mode 100644 index 0000000..2ae8ef3 --- /dev/null +++ b/frontend/src/fonts/OFL.txt @@ -0,0 +1,93 @@ +Copyright 2019 IBM Corp. All rights reserved. IBMPlexSans-Italic[wdth,wght].ttf: Copyright 2019 IBM Corp. All rights reserved. + +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: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +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/frontend/src/fonts/ibm-plex-mono-latin-400-normal.woff2 b/frontend/src/fonts/ibm-plex-mono-latin-400-normal.woff2 new file mode 100644 index 0000000..0804aaf Binary files /dev/null and b/frontend/src/fonts/ibm-plex-mono-latin-400-normal.woff2 differ diff --git a/frontend/src/fonts/ibm-plex-mono-latin-500-normal.woff2 b/frontend/src/fonts/ibm-plex-mono-latin-500-normal.woff2 new file mode 100644 index 0000000..090f82f Binary files /dev/null and b/frontend/src/fonts/ibm-plex-mono-latin-500-normal.woff2 differ diff --git a/frontend/src/fonts/ibm-plex-mono-latin-ext-400-normal.woff2 b/frontend/src/fonts/ibm-plex-mono-latin-ext-400-normal.woff2 new file mode 100644 index 0000000..732c64d Binary files /dev/null and b/frontend/src/fonts/ibm-plex-mono-latin-ext-400-normal.woff2 differ diff --git a/frontend/src/fonts/ibm-plex-mono-latin-ext-500-normal.woff2 b/frontend/src/fonts/ibm-plex-mono-latin-ext-500-normal.woff2 new file mode 100644 index 0000000..6f33f8c Binary files /dev/null and b/frontend/src/fonts/ibm-plex-mono-latin-ext-500-normal.woff2 differ diff --git a/frontend/src/fonts/ibm-plex-sans-latin-400-normal.woff2 b/frontend/src/fonts/ibm-plex-sans-latin-400-normal.woff2 new file mode 100644 index 0000000..f0ee65d Binary files /dev/null and b/frontend/src/fonts/ibm-plex-sans-latin-400-normal.woff2 differ diff --git a/frontend/src/fonts/ibm-plex-sans-latin-500-normal.woff2 b/frontend/src/fonts/ibm-plex-sans-latin-500-normal.woff2 new file mode 100644 index 0000000..6d5527e Binary files /dev/null and b/frontend/src/fonts/ibm-plex-sans-latin-500-normal.woff2 differ diff --git a/frontend/src/fonts/ibm-plex-sans-latin-600-normal.woff2 b/frontend/src/fonts/ibm-plex-sans-latin-600-normal.woff2 new file mode 100644 index 0000000..08c0d5a Binary files /dev/null and b/frontend/src/fonts/ibm-plex-sans-latin-600-normal.woff2 differ diff --git a/frontend/src/fonts/ibm-plex-sans-latin-ext-400-normal.woff2 b/frontend/src/fonts/ibm-plex-sans-latin-ext-400-normal.woff2 new file mode 100644 index 0000000..ef4be2d Binary files /dev/null and b/frontend/src/fonts/ibm-plex-sans-latin-ext-400-normal.woff2 differ diff --git a/frontend/src/fonts/ibm-plex-sans-latin-ext-500-normal.woff2 b/frontend/src/fonts/ibm-plex-sans-latin-ext-500-normal.woff2 new file mode 100644 index 0000000..6b51734 Binary files /dev/null and b/frontend/src/fonts/ibm-plex-sans-latin-ext-500-normal.woff2 differ diff --git a/frontend/src/fonts/ibm-plex-sans-latin-ext-600-normal.woff2 b/frontend/src/fonts/ibm-plex-sans-latin-ext-600-normal.woff2 new file mode 100644 index 0000000..c19b3c6 Binary files /dev/null and b/frontend/src/fonts/ibm-plex-sans-latin-ext-600-normal.woff2 differ diff --git a/frontend/src/style.css b/frontend/src/style.css index 0ab590a..cff6e5e 100644 --- a/frontend/src/style.css +++ b/frontend/src/style.css @@ -1,3 +1,42 @@ + /*! IBM Plex Sans & IBM Plex Mono — Copyright 2019 IBM Corp. + Licensed under the SIL Open Font License 1.1 — https://scripts.sil.org/OFL + (kein Reserved Font Name deklariert). Volltext: frontend/src/fonts/OFL.txt */ + /* Lokal eingebettet (self-hosted) statt von Google Fonts geladen — kein + externer Request, keine IP-Übertragung an Dritte (Datenschutz, D20). Nur die + genutzten Schnitte (Sans 400/500/600, Mono 400/500), Subsets latin + + latin-ext (decken DE/EN/ES/FR/PL); andere Skripte fallen ohnehin auf + system-ui zurück. Der Build inlint die .woff2 als data:-URI (D19). */ + @font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap; + src:url(./fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2'); + unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD} + @font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap; + src:url(./fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format('woff2'); + unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF} + @font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:500;font-display:swap; + src:url(./fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2'); + unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD} + @font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:500;font-display:swap; + src:url(./fonts/ibm-plex-sans-latin-ext-500-normal.woff2) format('woff2'); + unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF} + @font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:swap; + src:url(./fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2'); + unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD} + @font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:swap; + src:url(./fonts/ibm-plex-sans-latin-ext-600-normal.woff2) format('woff2'); + unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF} + @font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap; + src:url(./fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); + unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD} + @font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap; + src:url(./fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format('woff2'); + unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF} + @font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap; + src:url(./fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); + unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD} + @font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap; + src:url(./fonts/ibm-plex-mono-latin-ext-500-normal.woff2) format('woff2'); + unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF} + :root{ --paper:#F3F6F9; --grid:rgba(36,52,71,.055);