This useful web-application automatically generates css-code for importing local fonts. This is especially useful since using the Google Font API is now illegal without asking for consent. For using Google Fonts specifically, you should definitely check out this website.