Guest User

Untitled

a guest
Mar 22nd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. public override bool FinishedLaunching(UIApplication app, NSDictionary options)
  2. {
  3. // Nifty helper to get all fonts with the right names in your console
  4. #if DEBUG
  5. var fontList = new StringBuilder();
  6. var familyNames = UIFont.FamilyNames;
  7. foreach (var familyName in familyNames)
  8. {
  9. fontList.Append(String.Format("Family: {0}\n", familyName));
  10. Console.WriteLine("Family: {0}\n", familyName);
  11. var fontNames = UIFont.FontNamesForFamilyName(familyName);
  12. foreach (var fontName in fontNames)
  13. {
  14. Console.WriteLine("\tFont: {0}\n", fontName);
  15. fontList.Append(String.Format("\tFont: {0}\n", fontName));
  16. }
  17. };
  18. #endif
  19.  
  20. // ... Rest of the initialisation code here
  21. }
Add Comment
Please, Sign In to add comment