Ubuntu Firefox renders differently

后端 未结 7 598
萌比男神i
萌比男神i 2021-01-11 18:08

Firefox on Ubuntu seems to render some HTML considerably differently compared to other browsers. In particular some fonts/styles on Ubuntu are becoming much larger and colum

7条回答
  •  时光取名叫无心
    2021-01-11 18:25

    It is most likely a matter of fonts. If the browser doesn't find the font contained in the stylesheets, it will replace it with a font it sees suitable.

    Unfortunately, Ubuntu doesn't come with a lot of fonts. There is a package called msttcorefonts that contains multiple Microsoft fonts. You can install it using:

    sudo apt-get install msttcorefonts
    

    However, if you users don't have the particular fonts you need, they will see the page different.

    I would recommend you either don't make your design too dependent on the font. If, however, this is a necessity, consider other ways of rendering the text (like using Javascript, if the it is a title, for example).

提交回复
热议问题