Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

118
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda