Starting from WordPress 7.0, you can upload Custom Fonts or install Google Fonts directly from your WordPress admin panel > Appearance > Fonts. For example:

Upload or install custom fonts
After that, open the Theme options > Typography > General, and you will be able to select the custom font you added via the WordPress Fonts page as Body or Heading font for the theme. For example:

Theme Options > Typography > General