Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
amiika committed Oct 25, 2023
2 parents 4fd9f01 + 4f27d1e commit 140d451
Show file tree
Hide file tree
Showing 18 changed files with 109 additions and 1 deletion.
79 changes: 78 additions & 1 deletion fonts/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,81 @@
font-weight: 700;
font-style: italic;
font-display: swap;
}
}

@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;
}
Binary file added fonts/woff/ComicMono-Bold.woff
Binary file not shown.
Binary file added fonts/woff/ComicMono.woff
Binary file not shown.
Binary file added fonts/woff/jgs5.woff
Binary file not shown.
Binary file added fonts/woff/jgs7.woff
Binary file not shown.
Binary file added fonts/woff/jgs9.woff
Binary file not shown.
Binary file added fonts/woff2/ComicMono-Bold.woff2
Binary file not shown.
Binary file added fonts/woff2/ComicMono.woff2
Binary file not shown.
Binary file added fonts/woff2/JetBrainsMono-Bold.woff2
Binary file not shown.
Binary file added fonts/woff2/JetBrainsMono-Regular.woff2
Binary file not shown.
Binary file added fonts/woff2/Steps-Mono-Thin.woff2
Binary file not shown.
Binary file added fonts/woff2/Steps-Mono.woff2
Binary file not shown.
Binary file added fonts/woff2/jgs5.woff2
Binary file not shown.
Binary file added fonts/woff2/jgs7.woff2
Binary file not shown.
Binary file added fonts/woff2/jgs9.woff2
Binary file not shown.
7 changes: 7 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,14 @@ <h2 class="font-semibold lg:text-xl text-gray-400">More</h2>
<select id="font-family" class="bg-gray-50 ml-4 border border-gray-300 mb-2
text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white">
<option value="IBM Plex Mono">IBM Plex Mono</option>
<option value="Jet Brains">Jet Brains</option>
<option value="Courier">Courier</option>
<option value="Comic Mono">Comic Mono</option>
<option value="jgs5">JGS 5</option>
<option value="jgs7">JGS 7</option>
<option value="jgs9">JGS 9</option>
<option value="Steps Mono">Steps Mono</option>
<option value="Steps Mono Thin">Steps Mono Thin</option>
</select>
</div>
<!-- Editor mode selection -->
Expand Down
22 changes: 22 additions & 0 deletions src/API.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { EditorView } from '@codemirror/view';
import { getAllScaleNotes, seededRandom } from "zifferjs";
import {
MidiCCEvent,
Expand Down Expand Up @@ -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,
},
})
),
});
}
}
2 changes: 2 additions & 0 deletions src/documentation/about.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down

0 comments on commit 140d451

Please sign in to comment.