Server IP : 3.128.248.115 / Your IP : 18.188.113.185 Web Server : Apache/2.4.41 (Ubuntu) System : Linux ip-172-31-33-233 5.15.0-1037-aws #41~20.04.1-Ubuntu SMP Mon May 22 18:18:00 UTC 2023 x86_64 User : www-data ( 33) PHP Version : 7.4.28 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/housing-portal.org/wp-includes/ |
Upload File : |
<?php /** * Fonts functions. * * @package WordPress * @subpackage Fonts * @since 6.4.0 */ /** * Generates and prints font-face styles for given fonts or theme.json fonts. * * @since 6.4.0 * * @param array[][] $fonts { * Optional. The font-families and their font variations. Default empty array. * * @type string $font-family => array[] $variations { * Optional. An associated array of font variations for this font-family. * Each variation has the following structure. * * @type array $font_variation { * @type string $font-family The font-family property. * @type string|string[] $src The URL(s) to each resource containing the font data. * @type string $font_style Optional. The font-style property. Default 'normal'. * @type string $font-weight Optional. The font-weight property. Default '400'. * @type string $font-display Optional. The font-display property. Default 'fallback'. * @type string $ascent-override Optional. The ascent-override property. * @type string $descent-override Optional. The descent-override property. * @type string $font-stretch Optional. The font-stretch property. * @type string $font-variant Optional. The font-variant property. * @type string $font-feature-settings Optional. The font-feature-settings property. * @type string $font-variation-settings Optional. The font-variation-settings property. * @type string $line-gap-override Optional. The line-gap-override property. * @type string $size-adjust Optional. The size-adjust property. * @type string $unicode-range Optional. The unicode-range property. * } * } * } */ function wp_print_font_faces( $fonts = array() ) { if ( empty( $fonts ) ) { $fonts = WP_Font_Face_Resolver::get_fonts_from_theme_json(); } if ( empty( $fonts ) ) { return; } $wp_font_face = new WP_Font_Face(); $wp_font_face->generate_and_print( $fonts ); }