Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Tweak format to be easier to copy-paste-and-tweak to theme.json
Browse files Browse the repository at this point in the history
"file:./" URLs are relative to the theme's root because a theme.json file is always in the root of the theme. The "file:./" syntax is consistent with the way styles/scripts are defined in a block.json file for blocks.
  • Loading branch information
aristath committed Oct 13, 2021
1 parent 7cd1669 commit 8f75cd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ function twentytwentytwo_support() {
'fontWeight' => '200 900',
'fontStyle' => 'normal',
'fontStretch' => 'normal',
'src' => get_theme_file_uri( 'assets/fonts/source-serif-pro/SourceSerif4Variable-Roman.ttf.woff2' ),
'src' => 'file:./assets/fonts/source-serif-pro/SourceSerif4Variable-Roman.ttf.woff2',
'provider' => 'local',
),
array(
'fontFamily' => 'Source Serif Pro',
'fontWeight' => '200 900',
'fontStyle' => 'italic',
'fontStretch' => 'normal',
'src' => get_theme_file_uri( 'assets/fonts/source-serif-pro/SourceSerif4Variable-Italic.ttf.woff2' ),
'src' => 'file:./assets/fonts/source-serif-pro/SourceSerif4Variable-Italic.ttf.woff2',
'provider' => 'local',
),
)
Expand Down

0 comments on commit 8f75cd3

Please sign in to comment.