Reputation: 93
In development, I want to test whether a Google font is loading correctly on a page. However, the Google font always loads for me because I have it installed locally on my development machine.
Is there a way to tell the browser to ignore a locally installed font, specifically, within Google Chrome?
Upvotes: 4
Views: 1458
Reputation: 3594
Either delete local fonts either rename them to something different.
I think there is no other solution because Google adds local('font name')
to src
in @font-ace
:
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
src: local('Open Sans Light'), local('OpenSans-Light'), url(...) format('woff2');
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
}
Upvotes: 0
Reputation: 93
I discovered that on a Mac (OS X), I can disable any font in the "Font Book" app that comes standard on the Mac. See screenshot
Upvotes: 3