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

587
Vistas
HTML5 / CSS: How do you create pixelated text (upscale with sharp edges)

I'm making simple games in HTML5 some of which use sprite graphics. Upscaling images is easy: You draw your sprite at its minimum resolution, scale the element to your desired width and height, add the CSS flags image-rendering: pixelated; image-rendering: crisp-edges; to retain sharp edges.

But what about text, how do you pixelate it for consistency, can the text in innerHTML also be upscaled and sharpened? My text appears smooth and at high resolution which breaks the styling. Just as there's image-rendering for graphics there seems to be a text-rendering CSS property, but I'm not seeing how it can be used to achieve the effect.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can use fonts from websites. I would recommend you google fonts or for this specific case:

https://www.fontsquirrel.com/fonts/list/style/Pixel

The results should look something like this in CSS:

@font-face { 
font-family: myFirstFont; src: url("URL");
}
div {
font-family: myFirstFont;
}
about 4 years ago · Juan Pablo Isaza Denunciar
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