How to disable google font

Hello I want to disable google font in my Great mag theme (Child theme). Can you please tell me how to do it in function.php of child theme .
I tried 2 3 method but can’t do it.

Hello there,

Try adding the below PHP code to your child theme’s functions.php file.

    function greatmag_child_remove_google_fonts() {

       // Remove Google Fonts from theme
       wp_dequeue_style( 'greatmag-fonts' );

    add_action( 'wp_enqueue_scripts', 'greatmag_child_remove_google_fonts', 999 );