Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make my users automatically download the font I use for my website if they don't have it?

Tags:

html

css

fonts

My website uses the font ff-clifford-eighteen-web-pro-1. I want all my text to be displayed using that font even for the users that don't have it installed on their machine.

Is it possible?

like image 653
Rajesh Avatar asked Jan 22 '23 08:01

Rajesh


2 Answers

You can use the @font-face generator. It allows you to upload your fonts and it will create a nifty .zip download with CSS and all the related files you need to get your custom font working for your site.

http://www.fontsquirrel.com/fontface/generator

They also have a whole lot of licensed font-kits ready for use on your site too:

http://www.fontsquirrel.com/fontface

Another great site that allows you to "lease" licensed fonts is TypeKit.

http://typekit.com/

like image 104
jessegavin Avatar answered Jan 29 '23 21:01

jessegavin


You can't. If the font is not on the system where the browser is, the font will not be found and cannot be loaded.

You will need to distribute the font to the client systems (if you have the licensing to do that).

like image 21
Oded Avatar answered Jan 29 '23 20:01

Oded