diff --git a/fonts/index.css b/fonts/index.css index 6ad6277..31079ea 100644 --- a/fonts/index.css +++ b/fonts/index.css @@ -32,4 +32,81 @@ font-weight: 700; font-style: italic; font-display: swap; -} \ No newline at end of file +} + +@font-face { + font-family: "Comic Mono"; + font-weight: normal; + src: url(./woff/ComicMono.woff) format("woff"), + url(./woff2/ComicMono.woff2) format("wooff2"); +} + +@font-face { + font-family: "Comic Mono"; + font-weight: bold; + src: url(./woff/ComicMono-Bold.woff) format("woff"), + url(./woff/ComicMono-Bold.woff2) format("woff2"), +} + + +@font-face { + font-family: 'jgs7'; + src: url('./woff2/jgs7.woff2') format('woff2'), + url('./woff/jgs7.woff') format('woff'); + font-weight: normal; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'jgs5'; + src: url('./woff2/jgs5.woff2') format('woff2'), + url('./woff/jgs5.woff') format('woff'); + font-weight: normal; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'jgs9'; + src: url('./woff2/jgs9.woff2') format('woff2'), + url('./woff/jgs9.woff') format('woff'); + font-weight: normal; + font-style: normal; + font-display: swap; +} + + +@font-face { + font-family: 'Steps Mono'; + src: url('./woff2/Steps-Mono.woff2') format('woff2'); + font-weight: normal; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Steps Mono Thin'; + src: url('./woff2/Steps-Mono-Thin.woff2') format('woff2'); + font-weight: normal; + font-style: normal; + font-display: swap; +} + + +@font-face { + font-family: 'Jet Brains'; + src: url('./woff2/JetBrainsMono-Regular.woff2') format('woff2'); + font-weight: normal; + font-style: normal; + font-display: swap; +} + + +@font-face { + font-family: 'Jet Brains'; + src: url('./woff2/JetBrainsMono-Bold.woff2') format('woff2'); + font-weight: 700; + font-style: normal; + font-display: swap; +} diff --git a/fonts/woff/ComicMono-Bold.woff b/fonts/woff/ComicMono-Bold.woff new file mode 100644 index 0000000..9478ac9 Binary files /dev/null and b/fonts/woff/ComicMono-Bold.woff differ diff --git a/fonts/woff/ComicMono.woff b/fonts/woff/ComicMono.woff new file mode 100644 index 0000000..55f37e4 Binary files /dev/null and b/fonts/woff/ComicMono.woff differ diff --git a/fonts/woff/jgs5.woff b/fonts/woff/jgs5.woff new file mode 100644 index 0000000..d89e293 Binary files /dev/null and b/fonts/woff/jgs5.woff differ diff --git a/fonts/woff/jgs7.woff b/fonts/woff/jgs7.woff new file mode 100644 index 0000000..fba9f70 Binary files /dev/null and b/fonts/woff/jgs7.woff differ diff --git a/fonts/woff/jgs9.woff b/fonts/woff/jgs9.woff new file mode 100644 index 0000000..296c761 Binary files /dev/null and b/fonts/woff/jgs9.woff differ diff --git a/fonts/woff2/ComicMono-Bold.woff2 b/fonts/woff2/ComicMono-Bold.woff2 new file mode 100644 index 0000000..a516963 Binary files /dev/null and b/fonts/woff2/ComicMono-Bold.woff2 differ diff --git a/fonts/woff2/ComicMono.woff2 b/fonts/woff2/ComicMono.woff2 new file mode 100644 index 0000000..24f7611 Binary files /dev/null and b/fonts/woff2/ComicMono.woff2 differ diff --git a/fonts/woff2/JetBrainsMono-Bold.woff2 b/fonts/woff2/JetBrainsMono-Bold.woff2 new file mode 100644 index 0000000..4917f43 Binary files /dev/null and b/fonts/woff2/JetBrainsMono-Bold.woff2 differ diff --git a/fonts/woff2/JetBrainsMono-Regular.woff2 b/fonts/woff2/JetBrainsMono-Regular.woff2 new file mode 100644 index 0000000..40da427 Binary files /dev/null and b/fonts/woff2/JetBrainsMono-Regular.woff2 differ diff --git a/fonts/woff2/Steps-Mono-Thin.woff2 b/fonts/woff2/Steps-Mono-Thin.woff2 new file mode 100644 index 0000000..267c291 Binary files /dev/null and b/fonts/woff2/Steps-Mono-Thin.woff2 differ diff --git a/fonts/woff2/Steps-Mono.woff2 b/fonts/woff2/Steps-Mono.woff2 new file mode 100644 index 0000000..4a475d1 Binary files /dev/null and b/fonts/woff2/Steps-Mono.woff2 differ diff --git a/fonts/woff2/jgs5.woff2 b/fonts/woff2/jgs5.woff2 new file mode 100644 index 0000000..6ff26ad Binary files /dev/null and b/fonts/woff2/jgs5.woff2 differ diff --git a/fonts/woff2/jgs7.woff2 b/fonts/woff2/jgs7.woff2 new file mode 100644 index 0000000..dafdb89 Binary files /dev/null and b/fonts/woff2/jgs7.woff2 differ diff --git a/fonts/woff2/jgs9.woff2 b/fonts/woff2/jgs9.woff2 new file mode 100644 index 0000000..7e61699 Binary files /dev/null and b/fonts/woff2/jgs9.woff2 differ diff --git a/index.html b/index.html index 1d47cc7..8840421 100644 --- a/index.html +++ b/index.html @@ -229,7 +229,14 @@

More

diff --git a/src/API.ts b/src/API.ts index 6436e69..c6c4008 100644 --- a/src/API.ts +++ b/src/API.ts @@ -1,3 +1,4 @@ +import { EditorView } from '@codemirror/view'; import { getAllScaleNotes, seededRandom } from "zifferjs"; import { MidiCCEvent, @@ -2031,4 +2032,25 @@ export class UserAPI { ...config, }; }; + + // ============================================================= + // Ralt144mi section + // ============================================================= + + raltfont = (mainFont: string, commentFont: string): void => { + this.app.view.dispatch({ + effects: this.app.fontSize.reconfigure( + EditorView.theme({ + "&": { fontFamily: mainFont }, + ".cm-gutters": { fontFamily: mainFont, }, + ".cm-content": { + fontFamily: mainFont, + }, + ".cm-comment": { + fontFamily: commentFont, + }, + }) + ), + }); + } } diff --git a/src/documentation/about.ts b/src/documentation/about.ts index 8992f07..3988632 100644 --- a/src/documentation/about.ts +++ b/src/documentation/about.ts @@ -20,6 +20,8 @@ Topos is a free and open-source software distributed under [GPL-3.0](https://git - Frank Force for the [ZzFX](https://github.com/KilledByAPixel/ZzFX) synthesizer. - Kristoffer Ekstrand for the [AKWF](https://www.adventurekid.se/akrt/waveforms/adventure-kid-waveforms/) waveforms. - Ryan Kirkbride for some of the audio samples in the [Dough-Fox](https://github.com/Bubobubobubobubo/Dough-Fox) sample pack, taken from [here](https://github.com/Qirky/FoxDot/tree/master/FoxDot/snd). +- Adel Faure for the [JGS](https://adelfaure.net/https://adelfaure.net/) font. +- Raphaƫl Bastide for the [Steps Mono](https://github.com/raphaelbastide/steps-mono/) font. - All the [Topos](https//github.com/Bubobubobubobubo/Topos) contributors!