Skip to content

Instantly share code, notes, and snippets.

View mauriciosalazar's full-sized avatar

Mauricio Salazar mauriciosalazar

View GitHub Profile
@nuthatch
nuthatch / describeAllFonts
Created November 22, 2013 04:07
method to describe all fontName in iOS 7, ordered alphabetically. Also: all the fonts found in 7.0.3.
+ (void)describeAllFonts
{
NSMutableArray *fonts = [NSMutableArray array];
NSArray *familyNames = [UIFont familyNames];
for (NSString *familyName in familyNames)
{
NSArray *fontNames = [UIFont fontNamesForFamilyName:familyName];
for (NSString *fontName in fontNames)
{
UIFont *font = [UIFont fontWithName:fontName size:14];