In Magento, adding custom Google fonts can be done by following these steps:
Go to the Google fonts website and select the font you want to use.
Click on the “Use” button and select the “@import” option.
Copy the generated code and paste it into the head section of your Magento theme’s stylesheet.
In your stylesheet, you can now use the font-family property to apply the custom font to specific elements.
Clear the Magento cache for the changes to take effect.
Alternatively, you can use a 3rd party module to add custom fonts to your Magento store.