Skip to content

Commit

Permalink
Fixed bold text cross-browser
Browse files Browse the repository at this point in the history
  • Loading branch information
Hope41 committed Apr 29, 2024
1 parent 082a2cb commit 44f4691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
}

for (let i = 0; i < item.name.length; i ++) {
ctx.font = 'bold '+ S + 'px pixelMonospace, sans-serif'
ctx.font = S + 'px pixelMonospace, sans-serif'
const posX = item.x * (add * .7) + cvs.width / 2 - add / 6.5
const posY = item.y * (add * .3) + cvs.height / 2 + 100 - add / 40
const shake = 99 / (summ * summ * .5) * 5
Expand Down

0 comments on commit 44f4691

Please sign in to comment.