Skip to content

Instantly share code, notes, and snippets.

@50percentgrey
Last active October 6, 2015 13:58
Show Gist options
  • Save 50percentgrey/3059069dd93d30759e50 to your computer and use it in GitHub Desktop.
Save 50percentgrey/3059069dd93d30759e50 to your computer and use it in GitHub Desktop.
Read all Fonts xCode
- (void)readAllFontsInProject{
for (NSString* family in [UIFont familyNames])
{
NSLog(@"%@", family);
for (NSString* name in [UIFont fontNamesForFamilyName: family])
{
NSLog(@" %@", name);
}
}
}
@50percentgrey
Copy link
Author

  • Importar as fontes para o projeto;
  • em Info.plist adicionar a linha 'Fonts provided by application' tipo Array
    e inserir como string o nome completo com extensão de cada uma das fontes.
  • Rodar o método e copiar o nome das para ser usado no sistema

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment