mirror of
https://github.com/grey-cat-1908/metro.git
synced 2024-11-11 19:07:28 +03:00
Roboto Mono
This commit is contained in:
parent
053aaaad68
commit
1e8840d0e3
2 changed files with 4 additions and 2 deletions
|
@ -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',
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue