Real Dreams
Real Dreams

Reputation: 18010

Specifying a part of font name

Is there any way to specifying a part of a font name and browser use first matched font? For example I want let browser to use any font that has 'Garamond' in its name, e.g. Garamond Pro, Garamond Pro, ... .

Upvotes: 0

Views: 39

Answers (1)

Jukka K. Korpela
Jukka K. Korpela

Reputation: 201568

Not in HTML or in CSS. You would probably need both JavaScript and Flash in order to get a list of fonts in the user’s system, see e.g. Getting a List of Installed Fonts with Flash and Javascript.

With the name “Garammond”, you would probably not find anything. With “Garamond”, you would normally find just “Garamond” or nothing.

Upvotes: 1

Related Questions