Solved

UIFont max size

Posted on 2013-11-26
2
507 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 33

Accepted Solution

by:
pgnatyuk earned 500 total points
ID: 39680507
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
ID: 39681190
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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:   …
Article by: Justin
In light of the WannaCry ransomware attack that affected millions of Windows machines, you might wonder if your Mac needs protecting. Yes, it does and here is how to do it.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

717 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