Skip to content

Commit

Permalink
try using style
Browse files Browse the repository at this point in the history
  • Loading branch information
beam41 committed Jul 1, 2024
1 parent 5ba5e41 commit d0df15b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,10 @@ async function draw(game) {
x: 8,
y: 84,
fill: TEXT_WHITE,
"font-family": '"Noto Sans", sans-serif',
style:
'font-family: "Noto Sans", sans-serif; font-size: 16; font-weight: 600',
"dominant-baseline": "text-top",
"text-anchor": "start",
"font-size": 16,
"font-weight": 600,
},
fitText(game0.name, 16, 209, true),
),
Expand All @@ -83,11 +82,10 @@ async function draw(game) {
x: 8,
y: 97,
fill: TEXT_WHITE,
"font-family": '"Noto Sans", sans-serif',
style:
'font-family: "Noto Sans", sans-serif; font-size: 10; font-weight: 600',
"dominant-baseline": "text-top",
"text-anchor": "start",
"font-size": 10,
"font-weight": 600,
},
`${mapTime(game0.time2w, true)} (2 weeks) / ${mapTime(game0.timeTotal, true)} (total)`,
),
Expand Down

0 comments on commit d0df15b

Please sign in to comment.