Roboto Mono

This commit is contained in:
grey-cat-1908 2024-03-18 18:44:23 +03:00
parent 053aaaad68
commit 1e8840d0e3
2 changed files with 4 additions and 2 deletions

View file

@ -45,7 +45,7 @@ export class Map implements MetroMap {
let text = this.draw.text(stations[i].branch.number.toString()).fill('white').font({ size: 28}).cx(cx).cy(cy); let text = this.draw.text(stations[i].branch.number.toString()).fill('white').font({ size: 28}).cx(cx).cy(cy);
text.font({ text.font({
family: 'NTSomic', family: 'Roboto Mono',
weight: '750', weight: '750',
}) })
@ -91,7 +91,7 @@ export class Map implements MetroMap {
let text = this.draw.text(this.branch.number.toString()).font({ size: 35}).fill('#fff').cx(50).cy(50); let text = this.draw.text(this.branch.number.toString()).font({ size: 35}).fill('#fff').cx(50).cy(50);
text.font({ text.font({
family: 'NTSomic', family: 'Roboto Mono',
weight: '750', weight: '750',
}) })

View file

@ -1,3 +1,5 @@
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');
@font-face { @font-face {
font-family: NTSomic; font-family: NTSomic;
src: url(./assets/NTSomic-Bold.ttf); src: url(./assets/NTSomic-Bold.ttf);