Can I force the browser to use CSS @font-face instead of font installed on system?

前端 未结 3 1545
滥情空心
滥情空心 2020-12-17 00:47

Do browsers ignore @font-face if they determine that a CSS-imported font is already installed on the client OS?

I have a number of uncommon fonts instal

3条回答
  •  感动是毒
    2020-12-17 01:36

    From the edit in my question:

    This seems to resolve the issue:

    1. Ensure the CSS @font-face specification uses a different string for font-family than what is installed on the system.

    2. When referencing the font elsewhere in CSS, use:

      font-family: System Installed Font Name, 'Imported Font Name', Fallback Font;

提交回复
热议问题