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.
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):
Actual file on disk (working):
Impact:
The Roboto Flex font does not load, and text falls back to system fonts.
Notes:
Possibly related to commit
25a96e8.