![]() In other words, the same URL structure can retrieve the static fonts, a variable font range, or a variable font instance at a single specific value. This version of the API can serve both static and variable fonts-and indeed static instances of variable fonts. ![]() If you only require the weight to cover part of the available range, you can adjust the values accordingly and end up with a slightly smaller download. The API allows for individual values to be specified, but here the request uses the “.” syntax to request the full weight range of 200 to 700. This is where the axis or axes are listed, followed by an symbol, followed by values indicating the ranges requested. It’s after the colon that things change more dramatically. Requesting Yanone Kaffeesatz as a variable font with a weight axis range of 200–700 looks like break down the parts of the request:Ĭss2?family=.įirst, note that while the address endpoint is css2, specifying the font name is relatively unchanged from the previous version of the API. After selecting a variable font to use via the API, pay special attention to the changes in syntax from v1 to v2.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |