0

I use a library which allows the selection of a font.

If I use the font Verdana, the graphic render this :

enter image description here

But if I use Roboto it renders as :

enter image description here

In the browser inspector the CSS is :

enter image description here

Why a specific font render correctly and not another one ?

mtnp
  • 314
  • 7
  • 24
  • 3
    This might help you understand what's going on https://stackoverflow.com/questions/25520410/when-setting-a-font-size-in-css-what-is-the-real-height-of-the-letters . monospace fonts will use the same amount of space, others will do depending on their own character's specifities. We are missing your HTML and CSS demonstarting your issue anyhow. – G-Cyrillus May 20 '21 at 14:09
  • Why are you using `font-size: 1.2px`? That's far too small to be legible. – Dai Mar 03 '22 at 11:20

0 Answers0