|
@@ -12,6 +12,8 @@ class GlobalStylesFontsCustomizer {
|
|
private $font_control_default_body;
|
|
private $font_control_default_body;
|
|
private $font_control_default_heading;
|
|
private $font_control_default_heading;
|
|
|
|
|
|
|
|
+ //Not all fonts support v2 of the API that allows for the shorter URls
|
|
|
|
+ //list of supported fonts: https://fonts.google.com/variablefonts
|
|
private $fonts = array(
|
|
private $fonts = array(
|
|
'system-font' => array(
|
|
'system-font' => array(
|
|
'fontFamily' => '-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif',
|
|
'fontFamily' => '-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif',
|
|
@@ -70,7 +72,7 @@ class GlobalStylesFontsCustomizer {
|
|
'fontFamily' => '"Fira Sans", sans-serif',
|
|
'fontFamily' => '"Fira Sans", sans-serif',
|
|
'slug' => 'fira-sans',
|
|
'slug' => 'fira-sans',
|
|
'name' => 'Fira Sans',
|
|
'name' => 'Fira Sans',
|
|
- 'google' => 'family=Fira+Sans:ital,wght@0,100..900;1,100..900',
|
|
|
|
|
|
+ 'google' => 'family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900',
|
|
),
|
|
),
|
|
'inter' => array(
|
|
'inter' => array(
|
|
'fontFamily' => '"Inter", sans-serif',
|
|
'fontFamily' => '"Inter", sans-serif',
|