0

I am working with custom fonts. it is working fine with iPhone

            [btnHourMins.titleLabel setFont:[UIFont fontWithName:@"Rockwell-Bold" size:18]];
            [txtPrice setFont:[UIFont fontWithName:@"Rockwell-Bold" size:18]];

but when i used it in iPad then it display strange behavior (see in image), it display only half of the textbox an button.No any type of frame of button or textField set by me.

enter image description here

my coding for ipad is

      [txtPrice setFont:[UIFont fontWithName:@"Rockwell-Bold" size:36]];
      [lblHourMins.titleLabel setFont:[UIFont fontWithName:@"Rockwell-Bold" size:36]];

and if i set the size 10 instead of 36 it works fine. I download font from heare http://www.freefontsdb.com/detail/8042/Rockwell-Bold How can i solved this Problem. I searched from last 2 days.

1) No any type of view above on UITextField of UIButton
2) NO any type of frame set by me in coding (I just set the font).
3) Size of the Textfield and button is very bigger.

When i set backgroundclour Pink it display ...

enter image description here

SAMIR RATHOD
  • 3,512
  • 1
  • 20
  • 45

2 Answers2

0

Looks like the frame of your label isn't tall enough for the size of the font.

You will need to adjust the height to see the full text, or have it shrink the fontsize based on what will fit in the label.

Edit: Sorry I didn't see the additional text after your picture. Can you verify that the view is big enough? Try setting the background color to see it's frame.

Eric
  • 5,671
  • 5
  • 31
  • 42
0

I Found the solution. its the problem of font file when i tried with this

http://www.2shared.com/file/DEGKglFX/ROCKB.html

It working fine.

SAMIR RATHOD
  • 3,512
  • 1
  • 20
  • 45