diff --git a/src/App.vue b/src/App.vue index d587a3e..7d263c1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -29,7 +29,8 @@ onMounted(() => { diff --git a/src/assets/NTSomic-Bold.ttf b/src/assets/NTSomic-Bold.ttf new file mode 100644 index 0000000..4c597f6 Binary files /dev/null and b/src/assets/NTSomic-Bold.ttf differ diff --git a/src/models/map.ts b/src/models/map.ts index a2f634f..1572483 100644 --- a/src/models/map.ts +++ b/src/models/map.ts @@ -45,14 +45,14 @@ 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: 'Onest', + family: 'NTSomic', weight: '750', }) let naming = this.draw.text(stations[i].name).fill('black').font({ size: 25}); naming.cx(cx + 30 + (naming.bbox().width / 2)).cy(cy); naming.font({ - family: 'Onest', + family: 'NTSomic', weight: '750', leading: 1 }) @@ -77,7 +77,7 @@ export class Map implements MetroMap { let text = this.draw.text(stations[i].name).font({ size: 35}).cx(last + stations[i].step).cy(textPosition); text.font({ - family: 'Onest', + family: 'NTSomic', weight: '750', }) } @@ -91,14 +91,14 @@ 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: 'Onest', + family: 'NTSomic', weight: '750', }) let naming = this.draw.text(this.branch.name).font({ size: 35}); naming.cx(50 + 40 + (naming.bbox().width / 2)).cy(50); naming.font({ - family: 'Onest', + family: 'NTSomic', weight: '750', }) diff --git a/src/style.css b/src/style.css index 0554a6c..c83fb15 100644 --- a/src/style.css +++ b/src/style.css @@ -1 +1,4 @@ -@import url('https://fonts.googleapis.com/css2?family=Onest:wght@100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap') \ No newline at end of file +@font-face { + font-family: NTSomic; + src: url(./assets/NTSomic-Bold.ttf); +}