The CSS for a custom font?

Has anyone managed to add custom fonts in their custom CSS? I would like to do this for

a) regular text
b) a separate font for bolded text

Yes you can use both local fonts and cloud fonts.

More info here: https://css-tricks.com/snippets/css/using-font-face/