mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-27 21:31:39 -05:00
textBaseline
This commit is contained in:
@@ -52,8 +52,8 @@ function bottomInfo8th() {
|
||||
card.fillStyle = document.getElementById("inputInfoColor").value
|
||||
canvas.style.letterSpacing = "1px"
|
||||
card.font = "25px matrixb"
|
||||
card.fillText(document.getElementById("inputArtist").value, 116, infoY + textBaselineShift)
|
||||
card.fillText(document.getElementById("inputArtist").value, 116, infoY + textBaselineShift[0] * card.font.split("px")[0])
|
||||
canvas.style.letterSpacing = "0.5px"
|
||||
card.font = "16px mplantin"
|
||||
card.fillText("CC \u2014 " + document.getElementById("inputInfo").value + " " + document.getElementById("inputNumber").value, 62, infoY + 31 + textBaselineShift)
|
||||
card.fillText("CC \u2014 " + document.getElementById("inputInfo").value + " " + document.getElementById("inputNumber").value, 62, infoY + 31 + textBaselineShift[0] * card.font.split("px")[0])
|
||||
}
|
Reference in New Issue
Block a user