From 1e8840d0e32173cff45c69e0cd98590aaee43746 Mon Sep 17 00:00:00 2001 From: grey-cat-1908 Date: Mon, 18 Mar 2024 18:44:23 +0300 Subject: [PATCH] Roboto Mono --- src/models/map.ts | 4 ++-- src/style.css | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/models/map.ts b/src/models/map.ts index 1572483..79fdcce 100644 --- a/src/models/map.ts +++ b/src/models/map.ts @@ -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); text.font({ - family: 'NTSomic', + family: 'Roboto Mono', 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); text.font({ - family: 'NTSomic', + family: 'Roboto Mono', weight: '750', }) diff --git a/src/style.css b/src/style.css index c83fb15..85dc0d6 100644 --- a/src/style.css +++ b/src/style.css @@ -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-family: NTSomic; src: url(./assets/NTSomic-Bold.ttf);