D
D
Deodatuss2015-04-18 10:40:41
css
Deodatuss, 2015-04-18 10:40:41

How to force the browser not to pull up the fonts installed in the OS?

I know. The question sounds stupid as hell. But I connected a font from googlefonts to the site, and everything was fine. Until I looked at that site from another computer and realized that the font that was displayed for me was just a font already installed in the operating system. So, how can I disable this system font to check that Googlefont's one has worked?
PS: Well, of course, a virtual machine is an option, but damn it, it’s not possible to install it every time

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Serj-One, 2015-04-18
@Deodatuss

When connecting a font from google fonts, it first checks if there is a font in the system, and if there is, the existing one is displayed, so there is only one option - to check in a clean virtual machine (it’s not entirely clear what you mean by “but damn it’s not every time it’s set". Installed once and run for tests)
If you connect it yourself, you can avoid searching for a local font

@font-face {
    font-family: 'Room';
    font-weight: 100;
    font-style: normal; 

    src: url('../fonts/Room-Thin.eot');
    src: local('☺'), 
    url('../fonts/Room-Thin.woff') format('woff'),
    url('../fonts/Room-Thin.ttf') format('truetype'),
    url('../fonts/Room-Thin.svg') format('svg');
}

This smiley src: local('☺'),is the cure. The system will look for a font with that name, not the name of the font, and of course, it won't be found.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question