A naive approach like the one below may be appropriate for the first stage of the specification, but this may be more complicated than it seems due to platform/OS/browser restrictions.
Please share feedback, ideas and concerns in the issue below so we can assess the best course of action.
Font name
Represents a font name or an array of font names (ordered from most to least preferred). The type property must be set to the string “font”. The value must either be a string value containing a single font name or an array of strings, each being a single font name. For example:
{
"Primary font": {
"value": "Comic Sans MS",
"type": "font"
},
"Body font": {
"value": ["Helvetica", "Arial"],
"type": "font"
}
}
A naive approach like the one below may be appropriate for the first stage of the specification, but this may be more complicated than it seems due to platform/OS/browser restrictions.
Please share feedback, ideas and concerns in the issue below so we can assess the best course of action.
Font name
Represents a font name or an array of font names (ordered from most to least preferred). The type property must be set to the string “font”. The value must either be a string value containing a single font name or an array of strings, each being a single font name. For example:
{ "Primary font": { "value": "Comic Sans MS", "type": "font" }, "Body font": { "value": ["Helvetica", "Arial"], "type": "font" } }