Fix scoresheet text
This commit is contained in:
parent
59baa9f06f
commit
6559e8ee28
@ -454,13 +454,19 @@ class Scoresheet{
|
|||||||
})
|
})
|
||||||
ctx.fillStyle = "#000"
|
ctx.fillStyle = "#000"
|
||||||
ctx.fill()
|
ctx.fill()
|
||||||
ctx.font = "36px " + this.font
|
this.draw.layeredText({
|
||||||
ctx.textAlign = "right"
|
ctx: ctx,
|
||||||
ctx.fillStyle = "#fff"
|
text: strings.points,
|
||||||
ctx.strokeStyle = "#000"
|
x: 792,
|
||||||
ctx.lineWidth = 0.5
|
y: 253,
|
||||||
ctx.fillText(strings.points, 788, 284)
|
fontSize: 36,
|
||||||
ctx.strokeText(strings.points, 788, 284)
|
fontFamily: this.font,
|
||||||
|
align: "right",
|
||||||
|
width: 36
|
||||||
|
}, [
|
||||||
|
{fill: "#fff"},
|
||||||
|
{outline: "#000", letterBorder: 0.5}
|
||||||
|
])
|
||||||
|
|
||||||
this.draw.score({
|
this.draw.score({
|
||||||
ctx: ctx,
|
ctx: ctx,
|
||||||
@ -494,7 +500,7 @@ class Scoresheet{
|
|||||||
fontFamily: this.font,
|
fontFamily: this.font,
|
||||||
align: "right",
|
align: "right",
|
||||||
width: 154,
|
width: 154,
|
||||||
letterSpacing: 1
|
letterSpacing: strings.id === "ja" ? 1 : 0
|
||||||
}, [
|
}, [
|
||||||
{outline: "#000", letterBorder: 8},
|
{outline: "#000", letterBorder: 8},
|
||||||
{fill: grd}
|
{fill: grd}
|
||||||
@ -507,7 +513,8 @@ class Scoresheet{
|
|||||||
fontSize: 29,
|
fontSize: 29,
|
||||||
fontFamily: this.font,
|
fontFamily: this.font,
|
||||||
letterSpacing: 4,
|
letterSpacing: 4,
|
||||||
align: "right"
|
align: "right",
|
||||||
|
width: 154
|
||||||
}, [
|
}, [
|
||||||
{outline: "#000", letterBorder: 8},
|
{outline: "#000", letterBorder: 8},
|
||||||
{fill: "#ffc700"}
|
{fill: "#ffc700"}
|
||||||
|
Loading…
Reference in New Issue
Block a user