Add fallback font

This commit is contained in:
LoveEevee
2018-10-12 21:21:21 +03:00
parent f80565f25b
commit fecf4d86b6
6 changed files with 13 additions and 10 deletions

View File

@@ -103,7 +103,7 @@ class CanvasTest{
var comboX = 100
var comboY = 100
var fontSize = 120
this.ctx.font = "normal " + fontSize + "px TnT"
this.ctx.font = "normal " + fontSize + "px TnT, Meiryo, sans-serif"
this.ctx.textAlign = "center"
this.ctx.strokeStyle = "#000"
this.ctx.lineWidth = fontSize / 10