Skip to content

Instantly share code, notes, and snippets.

@Digitalchemy
Created February 4, 2011 06:33
Show Gist options
  • Save Digitalchemy/810815 to your computer and use it in GitHub Desktop.
Save Digitalchemy/810815 to your computer and use it in GitHub Desktop.
Monotouch method to enumerate loaded iPhone fonts to debug output for diagnostic purposes
void EnumerateLoadedFonts()
{
foreach (string family in UIFont.FamilyNames)
{
Debug.WriteLine("Family : " + family);
foreach (string font in UIFont.FontNamesForFamilyName(family))
{
Debug.WriteLine(" Font : " + font);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment