packages/kirki-framework/field-typography/src/Field/Typography.php
public function enqueue_scripts() {
		wp_enqueue_style( 'kirki-control-typography-style', URL::get_from_path( dirname( __DIR__ ) . '/assets/styles/style.css' ), [], '1.0' );

		wp_enqueue_script( 'kirki-typography', URL::get_from_path( dirname( __DIR__ ) . '/assets/scripts/script.js' ), [], '1.0', true );
		wp_localize_script( 'kirki-typography', 'kirkiTypographyControls', self::$typography_controls );

		if ( ! self::$gfonts_var_added ) {
			echo '<script>kirkiGoogleFonts=';
			$google = new GoogleFonts();
			$google->print_googlefonts_json( false );
			echo ';</script>';
			self::$gfonts_var_added = true;
		}
	}
public function enqueue_scripts() {
		wp_enqueue_style( 'kirki-control-typography-style', URL::get_from_path( dirname( __DIR__ ) . '/assets/styles/style.css' ), [], '1.0' );

		wp_enqueue_script( 'kirki-typography', URL::get_from_path( dirname( __DIR__ ) . '/assets/scripts/script.js' ), [], '1.0', true );
		wp_localize_script( 'kirki-typography', 'kirkiTypographyControls', self::$typography_controls );

		if ( ! self::$gfonts_var_added ) {
			echo '<script>kirkiGoogleFonts=';
			$google = new GoogleFonts();
			$google->print_googlefonts_json( false );
			echo ';</script>';
			self::$gfonts_var_added = true;
		}
	}
public function enqueue_scripts ( ) { wp_enqueue_style ( 'kirki-control-typography-style' , URL :: get_from_path ( dirname ( __DIR__ ) . '/assets/styles/style.css' ) , [ ] , '1.0' ) ; wp_enqueue_script ( 'kirki-typography' , URL :: get_from_path ( dirname ( __DIR__ ) . '/assets/scripts/script.js' ) , [ ] , '1.0' , true ) ; wp_localize_script ( 'kirki-typography' , 'kirkiTypographyControls' , self :: $ typography_controls ) ; if ( ! self :: $ gfonts_var_added ) { echo '<script>kirkiGoogleFonts=' ; $ google = new GoogleFonts ( ) ; $ google -> print_googlefonts_json ( false ) ; echo ';</script>' ; self :: $ gfonts_var_added = true ; } }
Enqueue scripts & styles.

@access public
@since 1.0
@return void
Enqueue scripts & styles .