Skip to content

Commit

Permalink
change style to attr
Browse files Browse the repository at this point in the history
  • Loading branch information
beam41 committed Jul 14, 2024
1 parent 2eae04d commit 373dad4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ async function draw(game) {
x: 8,
y: 84,
fill: TEXT_WHITE,
style:
'font-family: "Noto Sans", sans-serif; font-size: 16; font-weight: 600',
"font-family": '"Noto Sans", sans-serif',
"font-size": 16,
"font-weight": 600,
"dominant-baseline": "text-top",
"text-anchor": "start",
},
Expand All @@ -82,8 +83,9 @@ async function draw(game) {
x: 8,
y: 97,
fill: TEXT_WHITE,
style:
'font-family: "Noto Sans", sans-serif; font-size: 10; font-weight: 600',
"font-family": '"Noto Sans", sans-serif',
"font-size": 10,
"font-weight": 600,
"dominant-baseline": "text-top",
"text-anchor": "start",
},
Expand Down

0 comments on commit 373dad4

Please sign in to comment.