Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

109
Views
Broken OTF file in p5

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:

Text moved to the left

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**

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!