user796443
user796443

Reputation:

@font-face issue when weights are set

If I use @font-face and set font-weight: 900; for example.

And inside my css use it as font-family: "custom-font", Arial; and font-weight: 100;

I expect browser to show Arial, since custom-font is only 900. But this is not what happens, browser loads custom-font for all weights.

Is this normal?

Upvotes: 1

Views: 36

Answers (1)

BenM
BenM

Reputation: 53246

No. The font delegation means that if custom-font is not installed (regardless of the specified weight) on the user's machine, it will fall back to Arial. Just because the custom-font does not exist in a weight of 900 does not mean the browser will delegate to Arial.

Upvotes: 1

Related Questions