You appear to be a bot. Output may be restricted
Description
Register custom fonts.
Usage
twentyseventeen_fonts_url();
Parameters
Returns
void
Source
File name: twentyseventeen/functions.php
Lines:
1 to 25 of 25
function twentyseventeen_fonts_url() { $fonts_url = ''; /* * translators: If there are characters in your language that are not supported * by Libre Franklin, translate this to 'off'. Do not translate into your own language. */ $libre_franklin = _x( 'on', 'Libre Franklin font: on or off', 'twentyseventeen' ); if ( 'off' !== $libre_franklin ) { $font_families = array(); $font_families[] = 'Libre Franklin:300,300i,400,400i,600,600i,800,800i'; $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), 'display' => urlencode( 'fallback' ), ); $fonts_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' ); } return esc_url_raw( $fonts_url ); }