Skip to content

Incorrect generation of Roboto Flex font URLs #215

@Cognizaunce

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions