ios - Custom font is not added to project -
i have same issue described here
i have font called antiquaa.ttf. font added supporting files of project. in app plist have entry fonts provided application , antiquaa.ttf added there.
i can't use font in app. when run method can't see font.
nsarray *familynames = [[nsarray alloc] initwitharray:[uifont familynames]]; nsarray *fontnames; nsinteger indfamily, indfont; (indfamily=0; indfamily<[familynames count]; ++indfamily) { nslog(@"family name: %@", [familynames objectatindex:indfamily]); fontnames = [[nsarray alloc] initwitharray: [uifont fontnamesforfamilyname: [familynames objectatindex:indfamily]]]; (indfont=0; indfont<[fontnames count]; ++indfont) { nslog(@" font name: %@", [fontnames objectatindex:indfont]); } [fontnames release]; } [familynames release];
what missing ?
push add button in "copy bundle resources" , click on font files.
Comments
Post a Comment