Use multiple custom fonts using @font-face?

前端 未结 5 1862
别那么骄傲
别那么骄傲 2021-01-31 01:07

I\'m sure I\'m missing something really straight forward. Been using a single custom font with normal font face:

@font-fa         


        
5条回答
  •  执念已碎
    2021-01-31 01:50

    If you are having a problem with the font working I have also had this in the past and the issue I found was down to the font-family: name. This had to match what font name was actually given.

    The easiest way I found to find this out was to install the font and see what display name is given.

    For example, I was using Gill Sans on one project, but the actual font was called Gill Sans MT. Spacing and capitlisation was also important to get right.

    Hope that helps.

提交回复
热议问题