Astra_WebFont_Loader::set_font_format( string $format = 'woff2' )

Set the font-format to be used.


Description


Parameters

$format

(string) (Optional) The format to be used. Use "woff" or "woff2".

Default value: 'woff2'


Return

(void)


Source

File: inc/lib/webfont/class-astra-webfont-loader.php

	public function set_font_format( $format = 'woff2' ) {
		$this->font_format = apply_filters( 'astra_local_google_fonts_format', $format );
	}

Changelog

Changelog
Version Description
3.6.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.