When adding a custom font to my project, it bunches up to the left. There's no way from my -albeit brief- search to change the spread of the letters within the code. I could make a new text function every time I want a letter, but that would be extremely inefficient. Here's some test code: let newgroundsFont function preload() { newgroundsFont=loadFont("NewgroundsFont-Regular.otf") }
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
textFont(newgroundsFont)
textSize(10)
text("Hi! I'm a test!", 5, 20)
textSize(20)
text("Hi! I'm a test!", 5, 60)
textSize(40)
text("Hi! I'm a test!", 5, 120)
textSize(80)
text("Hi! I'm a test!", 5, 220)
textSize(160)
text("Hi! I'm a test!", 5, 390)
}
But this is the result:
The URL for this project is this: https://editor.p5js.org/TheDiamondfinderYT/sketches/EkaCD2jb6
And this is the font: https://www.newgrounds.com/dump/download/f858f852e56f5dda50ae2aa869455495
**THIS WILL INSTANTLY DOWNLOAD IT IN A ZIP**