Self-hosting a web font

What I did to reduce the size of a font file to use it in a website without resorting to external cdns.