Created
April 16, 2020 14:46
-
-
Save shubhw12/794a461440d2fb26288eaff64dca951b to your computer and use it in GitHub Desktop.
Custom fonts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter( 'astra_system_fonts', 'my_custom_fonts' ); | |
| function my_custom_fonts(){ | |
| $system_custom_fonts = array( | |
| 'Helvetica' => array( | |
| 'fallback' => 'Verdana, Arial, sans-serif', | |
| 'weights' => array( | |
| '300', | |
| '400', | |
| '700', | |
| ), | |
| ), | |
| 'Verdana' => array( | |
| 'fallback' => 'Helvetica, Arial, sans-serif', | |
| 'weights' => array( | |
| '300', | |
| '400', | |
| '700', | |
| ), | |
| ), | |
| 'Arial' => array( | |
| 'fallback' => 'Helvetica, Verdana, sans-serif', | |
| 'weights' => array( | |
| '300', | |
| '400', | |
| '700', | |
| ), | |
| ), | |
| 'Times' => array( | |
| 'fallback' => 'Georgia, serif', | |
| 'weights' => array( | |
| '300', | |
| '400', | |
| '700', | |
| ), | |
| ), | |
| 'Georgia' => array( | |
| 'fallback' => 'Times, serif', | |
| 'weights' => array( | |
| '300', | |
| '400', | |
| '700', | |
| ), | |
| ), | |
| 'Courier' => array( | |
| 'fallback' => 'monospace', | |
| 'weights' => array( | |
| '300', | |
| '400', | |
| '700', | |
| ), | |
| ), | |
| 'GT Walsheim Pro' => array( | |
| 'fallback' => 'Lato, sans-serif', | |
| 'weights' => array( | |
| '100', | |
| '200', | |
| '300', | |
| '400', | |
| '500', | |
| '700', | |
| '800', | |
| '900', | |
| ), | |
| ), | |
| ); | |
| return $system_custom_fonts; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment