0

I built a test app. All it does is populate a label on the screen with text and then try and change the font. 90% of the time this works just fine, even when I am using custom fonts that I have imported. However, I have not been able to get Wingdings to function even though I installed it in my resources folder and added it to the info.plist

self.theLabel.font = [UIFont fontWithName:@"Wingdings-Regular" size:64.0f];

I thought maybe it was the name I was using, but I ran a test and found that not only is the family Wingdings installed, but Wingdings-Regular is the proper name. I ran experiments where I switched out "Wingdings-Regular" with other variations and noticed that when I do enter something that is garbage, the size is ignored. Using "Wingdings-Regular" the size is not ignored, but the letters show up normally instead of the Symbols I need. How do I fix this problem?

I am pulling my hair out.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Beleg
  • 362
  • 2
  • 23
  • I was not able to get this to work, however I was able to use Unicode to get the symbols I needed out of the Arial font. Still curious why Wingdings does not work, but at least I can finish my project. – Beleg Feb 03 '12 at 14:21
  • 2
    Wingdings did not work for me either. Your unicode idea did work, thankfully. This site has list of unicode characters: http://www.alanwood.net/unicode/index.html#links. – Vik Feb 29 '12 at 16:43

1 Answers1

1

Unicode is required to access the symbols in Wingdings or other symbol fonts. See How to use Wingdings font in Java Swing for more discussion. UIKit and Java are both fundamentally based on Unicode. See http://unicode.org for more details.

Community
  • 1
  • 1
Steven McGrath
  • 1,717
  • 11
  • 20