The following code allows to create a font with different weights.
func makeFont(weight: CGFloat, size: CGFloat) -&g