public static function get_google_fonts() {
		$google_fonts = get_transient( '_suru_libs_google_fonts' );

		if ( ! is_array( $google_fonts ) || empty( $google_fonts ) ) {
			// Fallback to load fonts from local file.
			$google_fonts = json_decode(
				file_get_contents( dirname( dirname( __DIR__ ) ) . '/Resources/webfonts.json' ), true
			);

			static::set_transients( $google_fonts );
		}

		return apply_filters( 'suru_libs_system_fonts', $google_fonts );
	}
public static function get_google_fonts() {
		$google_fonts = get_transient( '_suru_libs_google_fonts' );

		if ( ! is_array( $google_fonts ) || empty( $google_fonts ) ) {
			// Fallback to load fonts from local file.
			$google_fonts = json_decode(
				file_get_contents( dirname( dirname( __DIR__ ) ) . '/Resources/webfonts.json' ), true
			);

			static::set_transients( $google_fonts );
		}

		return apply_filters( 'suru_libs_system_fonts', $google_fonts );
	}
public static function get_google_fonts ( ) { $ google_fonts = get_transient ( '_suru_libs_google_fonts' ) ; if ( ! is_array ( $ google_fonts ) || empty ( $ google_fonts ) ) { // Fallback to load fonts from local file. $ google_fonts = json_decode ( file_get_contents ( dirname ( dirname ( __DIR__ ) ) . '/Resources/webfonts.json' ) , true ) ; static :: set_transients ( $ google_fonts ) ; } return apply_filters ( 'suru_libs_system_fonts' , $ google_fonts ) ; }
Gets the Google Fonts.

@see https://developers.google.com/fonts/docs/developer_api

@return array
Gets the Google Fonts .