1

I have done everything to get the following font working using a .ttf :

http://www.fontsquirrel.com/fonts/Miso ...

I. Here they are in my project column:

enter image description here

II. Here they are in my plist file.

enter image description here

III ...and here now in my Copy Bundle Resources

enter image description here

Here is it's name according to the apple font program:

enter image description here

And here according to its CTRL + CLICK, "get info"

enter image description here

All attempts to log it like so:

  NSLog(@"the font: %@",[UIFont fontNamesForFamilyName:@"Miso Light"]);
NSLog(@"the font: %@",[UIFont fontNamesForFamilyName:@"Miso-Light"]);
NSLog(@"the font: %@",[UIFont fontNamesForFamilyName:@"Miso"]);
NSLog(@"the font: %@",[UIFont fontNamesForFamilyName:@"Miso Light"]);


NSArray *familyNames = [[NSArray alloc] initWithArray:[UIFont familyNames]];
NSArray *fontNames;
NSInteger indFamily, indFont;
for (indFamily=0; indFamily<[familyNames count]; ++indFamily)
{
    NSLog(@"Family name: %@", [familyNames objectAtIndex:indFamily]);
    fontNames = [[NSArray alloc] initWithArray:
                 [UIFont fontNamesForFamilyName:
                  [familyNames objectAtIndex:indFamily]]];
    for (indFont=0; indFont<[fontNames count]; ++indFont)
    {
        NSLog(@"    Font name: %@", [fontNames objectAtIndex:indFont]);
    }

... are proving fruitless. This is one man's wit's end to importing a custom font to iOS.

4

0 に答える 0