Solved

UIFont max size

Posted on 2013-11-26
2
481 Views
Last Modified: 2013-11-27
I'm trying to increase the font to larger than 100, but I'm having issues doing so.  I'm creating a timer, which I want to have a large font, but it seems as though once I get above 70, I start getting these blocks to appear and my text does not.  Anyone know the correct way of doing this?

timerText.font = [UIFont fontWithName:@"arial" size:80.0];

Open in new window

Screen-Shot-2013-11-26-at-6.11.5.png
0
Comment
Question by:pingeyeg
2 Comments
 
LVL 33

Accepted Solution

by:
pgnatyuk earned 500 total points
Comment Utility
Which box? You mean these three dots in the end of the text? They look like a rectangle in the font you selected, but these are dots.

Make the label bigger. That will solve the problem. You see the dots when there is not enough room for the text.

You can change lineBreakMode in UILabel and it may simply truncate the text. You can set number of lines to 0 in UILabel and the text will appear in few lines. You can change adjustsFontSizeToFitWidth... Many things. But in your case looks like you need to make the label bigger.
0
 
LVL 1

Author Comment

by:pingeyeg
Comment Utility
That was odd that lineBreakMode allowed it to be displayed all on the one line.  Eitherway, thanks for the tip.  That worked.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Preface   In the first 100 days of the Macintosh release in January 1984, Apple sold 72,000 of the computers. Relatively cheap, easy-to-use personal computer with a graphical operating system. I've never seen this model. I did see this one:   …
A common question or need, when setting-up a new Mac for someone would be to make all of the applications, installed, available from the dock. Many people often do not realize an application is installed unless it is in the dock. Creating a custo…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now