uibutton set font programmatically swift code example
Example: how to change the font of buttons programmatically swift
myButton.titleLabel?.font = UIFont(name: YourfontName, size: 20)
myButton.titleLabel?.font = UIFont(name: YourfontName, size: 20)