Nishant Singh
Nishant Singh

Reputation: 21

Incorrect capitalization in UILabel

The code I am using:

@IBOutlet weak var tlabel: UILabel!

override func viewDidLoad() {
    super.viewDidLoad()
    tlabel.font = UIFont(name: "Anxiety", size: 40)
    tlabel.numberOfLines = 0
    tlabel.text = "Test"
}

The text "Test" gets capitalized ("TEST" appears on the screen). How can I avoid this?

Upvotes: 0

Views: 74

Answers (1)

Moriya
Moriya

Reputation: 7906

A quick google seems to show that the font Anxiety does not have any non capital letters in the font. So if you want to use non capital letters you have to find another font.

http://www.1001freefonts.com/anxiety.font

Upvotes: 2

Related Questions