This PR should apply the "Save Fonts" save option when cloning a theme via Create Theme -> Clone Theme. This means that any font settings and files are copied over to the new cloned theme, including updating the file asset paths.
Install and activate some custom fonts using the Font Library.
Go to the CBT menu, Create Theme -> Clone Theme.
Name your theme.
Check the theme.json of the newly cloned theme: ensure that the fontFace.src paths are relative to the cloned theme. i.e. the paths start with file:. and not an absolute URL.
This PR should apply the "Save Fonts" save option when cloning a theme via Create Theme -> Clone Theme. This means that any font settings and files are copied over to the new cloned theme, including updating the file asset paths.
Fixes https://github.com/WordPress/create-block-theme/issues/677.
To test:
fontFace.src
paths are relative to the cloned theme. i.e. the paths start withfile:.
and not an absolute URL.