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

167
Views
La fuente importada funciona en Chrome pero no en Safari

He estado probando mi sitio web en Chrome y tengo todo funcionando como se esperaba, pero acabo de descubrir que mi fuente no se importa en Safari y se usa la fuente predeterminada en lugar de la que se supone que debo usar. Incluí un fragmento que muestra cómo estoy importando y usando la fuente. ¿Tal vez necesito acceder a la fuente de una manera diferente para tenerla disponible para usar en ambos navegadores?

 const context = document.querySelector("canvas").getContext("2d"); context.width = document.body.clientWidth; context.height = document.body.clientHeight; context.beginPath(); context.font = "10vw Montserrat"; context.fillStyle = "red"; context.textAlign="center"; context.textBaseline = "middle"; context.fillText("XXXXXX", context.width/2, context.height/2); context.closePath();
 @import url('https://fonts.googleapis.com/css?family=Montserrat:900i&display=swap');
 <canvas class="game"></canvas>

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!