Is it possible to define a custom name for Google fonts?
Eg. <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
How to use 'Open Sans' with custom name?
div {
font-family: 'custom'; // to be same as 'Open Sans'
}
Using @font-face
as answered here is not possible, since I don't have url
to source files (ttf, eot, woff, ...).
Links to source files on Google cdn
would solve this issue.
This code will work in your case:
I'm not sure if it's a stable enough because the URL will change if there's a new update to the font and I'm not sure if Google will ban access to the other URL.
EDIT:
The WOFF format is supported by IE9+, Firefox, Chrome etc. Source: http://caniuse.com/#feat=woff
The WOFF2 format is less supported: http://caniuse.com/#search=woff2
You could download the font and supply your own name for it using
@font-face {}
Convert the font using a font converter.
Then change the font name like this...
Then call the font using: