googlefonts / googlefonts/roboto-flex

Issue with XOPQ when downloading various axis subsets of Roboto Flex

Open
#360 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
525
Forks
35
PR merge metrics
No merged PRs in 30d

Description

I’m getting confused trying to download a parametric-only version of Roboto Flex using the Google Fonts API. I don’t know if it’s an issue with the API or with the font, so I post it here.

To obtain the parametric-only font, I would expect to use the following (axes in alphabetical order, with their ranges copied from the font’s actual extrema):

```
https://fonts.googleapis.com/css2?family=Roboto+Flex:XOPQ,XTRA,YOPQ,YTAS,YTDE,YTFI,YTLC,YTUC@27..175,323..603,25..135,649..854,-305..-98,560..788,416..570,528..760
```

However that gives me an error “400: Missing font family The requested font families are not available.”

Then I noticed that the complete font, when downloaded via the “Download family” button, is named `RobotoFlex-VariableFont_GRAD,XTRA,YOPQ,YTAS,YTDE,YTFI,YTLC,YTUC,opsz,slnt,wdth,wght.ttf`. Note the absence of `XOPQ` in its name.

So I tried another API call, dropping XOPQ:

```
https://fonts.googleapis.com/css2?family=Roboto+Flex:XTRA,YOPQ,YTAS,YTDE,YTFI,YTLC,YTUC@323..603,25..135,649..854,-305..-98,560..788,416..570,528..760
```

To my surprise, this not only works fine but also includes the XOPQ axis.

Possibly related, when requesting the font with only a Weight axis, you also get the XOPQ axis:

```
https://fonts.googleapis.com/css2?family=Roboto+Flex:wght@100..1000
```

So I wonder if XOPQ is functioning as intended within the Google Fonts API.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.