Solved

UIFont max size

Posted on 2013-11-26
2
491 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Even though Mac OS X has been around for many years now, certain well-liked and eminently useful software apps never made the jump from Mac OS 9 to Mac OS X. Ever used Word Perfect for Mac? Version 3.5 was the last version, built for Mac OS 9. Who c…
A lot of new and distinct gadgets are making their appearance every other day. The latest gadget that has wooed the attention of all gadget lovers and non gadget lovers alike is the Smartwatch. This tiny gadget is capable of offering live access to …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

823 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