Skip to content

Incorrect generation of Roboto Flex font URLs #215

Description

@Cognizaunce

When using the Roboto Flex font family, font requests fail because the generated URLs use PascalCase paths, while the actual files in the theme are named in kebab-case. This results in 500 errors when trying to load the fonts.

Example:
Generated URL (failing):

https://mysite/wp-content/themes/extendable/assets/fonts/RobotoFlex/RobotoFlex-VariableFont_GRAD,XTRA,YOPQ,YTAS,YTDE,YTFI,YTLC,YTUC,opsz,slnt,wdth,wght.woff2

Actual file on disk (working):

https://mysite/wp-content/themes/extendable/assets/fonts/roboto-flex/roboto-flex.woff2

Impact:
The Roboto Flex font does not load, and text falls back to system fonts.

Notes:
Possibly related to commit 25a96e8.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions