WordPress import Google fonts done the right way

Load fonts into your templates using Functions method as shown below:

<?php 

 function load_fonts() {
 wp_register_style('googleFonts', 'https://fonts.googleapis.com/css?family=Play:400,700|Roboto:400,700,900');
 wp_enqueue_style( 'googleFonts');
 }
 
 add_action('wp_print_styles', 'load_fonts');

?>

This way the fonts are embedded for child themes and can be used when pages are printed to PDF.