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

213
Vistas
Text stroke not aligned with fill in Chrome canvas using Google fonts

When drawing text to a canvas using certain Google fonts such as Italianno, the text's stroke doesn't line up with the text's fill when viewed in Chrome on PC (Android Chrome and other browsers render the text correctly).

canvas text stroke not aligned in Chrome

Strangely, this issue only appears at certain font sizes (increasing the size to 400px for example fixes the issue).

canvas text stroke with correct alignment

const canvas = document.getElementById('c1');
const ctx = canvas.getContext('2d');
document.fonts.load('300px Italianno').then(function() {
  ctx.font = '300px Italianno';
  ctx.lineWidth = 3;
  ctx.strokeStyle = 'red';
  ctx.strokeText('27', 40, 150);
  ctx.fillText('27', 40, 150);
});
<link href="https://fonts.googleapis.com/css?family=Italianno:400.css" rel="stylesheet" />
<canvas id='c1' width='300' height='200'></canvas>

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