English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Can I use some sort of check to find a specific font on the client machine when loading a web site and if that font is not found, install the font with little to no interaction with the user? Is this type of behavior seen as malicious on unethical? I would like to use a specific font, however most will not have this font installed and I don't want to default to Times New Roman.

2007-01-07 18:59:04 · 4 answers · asked by binaryking 3 in Computers & Internet Programming & Design

4 answers

You can't actually install a font onto a user's computer but you can import one temporarily. Use the @font-face CSS2 At-Rule.

http://msdn2.microsoft.com/en-us/library/ms530757.aspx

You'll need to create an Embedded Font which you can find out how to do here.

http://www.netmechanic.com/news/vol3/css_no15.htm

2007-01-08 00:29:04 · answer #1 · answered by Kookiemon 6 · 0 0

The absolute best you can do in this circumstance is _request_ that your users download and install the font themselves. An automated installer would be complex as not everyone uses the same OS, and font installation varies greatly from OS to OS... Also, not everyone (take me for instance) wants every site on the net to start installing stuff on my system as soon as I visit them. If it was a possibility, then everyone would be doing it - life on the net would become a nightmare, and before long an array of software to stop sites installing fonts would hit the market... The other option of course is to redesign your site more intelligently, taking into account that your user may not have the font installed. If you require a special font because it contains certain special characters, considering using images instead. Another option is to use PDF - the file will be larger but at least you can guarantee that the whole thing will be displayed/printed exactly as it was designed. The answer is simple - don't expect everyone to change their systems to suit your page - change your page to maximize compatibility instead!

2016-05-23 08:33:50 · answer #2 · answered by Anonymous · 0 0

U can check ur client machine for a specific font.. if it is not available there we can also install that font.. the thing is that if u are trying to install something to ur client machine some window will be prompted to ask whether the client has to install.
one more thing if u have installed ur specific font in ur client machine.. the client has to restart his browser which is considered to be malicious for the client..

u better choose the common font that most of client machine could support

2007-01-07 19:37:47 · answer #3 · answered by bala 2 · 1 1

I think there is no way to automatically install a missing font. And if there is a way, you shouldn't use that method becauase your visitor may annoy of the automatic installation. Use default font like arial. CSS can change font easily by inserting the following code at the head section.

2007-01-07 19:44:51 · answer #4 · answered by Anonymous · 1 0

fedest.com, questions and answers