Parsed: 133156

  public function generate_and_print( array $fonts ) {
    $fonts = $this->validate_fonts( $fonts );

    // Bail out if there are no fonts are given to process.
    if ( empty( $fonts ) ) {
      return;
    }

    $css = $this->get_css( $fonts );

    /*
		 * The font-face CSS is contained within <style> tags and can only be interpreted
		 * as CSS in the browser. Using wp_strip_all_tags() is sufficient escaping
		 * to avoid malicious attempts to close </style> and open a <script>.
		 */
    $css = wp_strip_all_tags( $css );

    // Bail out if there is no CSS to print.
    if ( empty( $css ) ) {
      return;
    }

    printf( $this->get_style_element(), $css );
  }