Syed Rizwan Ali
Syed Rizwan Ali

Reputation: 233

Auto install a font used on my website

I am using a custom font on my site and in search of a way that this font will be installed automatically on the user's system who is opening the site.

Is there any script or any way to do that?

Upvotes: 1

Views: 2106

Answers (2)

Dagg Nabbit
Dagg Nabbit

Reputation: 76766

Yes, font squirrel has an easy-to-use generator that will transform your font into various formats appropriate for different browsers.

The font is not actually installed on the user's machine, it's linked remotely, like an image or script. There's no way to automatically install things on people's machines for obvious security reasons.

Upvotes: 1

Nick Silva
Nick Silva

Reputation: 1

The answer is Yes!

New in CSS3 is @font-face, which tells a browser to download a font and use it to render some text. This is an an example I made with jsFiddle. The caveat with @font-face is that each browser requires a different file type to work. On websites like Google Web Fonts you can use fonts that will work in all browsers.

Upvotes: 0

Related Questions