title: Enumerating Configuration Profile installed Fonts on iOS
body: <p>I'm looking for a way to enumerate all fonts that have been installed via Configuration Profiles on iOS?
  I've heard that you can use SecItemCopyMatching for this but I'm unable to find the right combination of parameters that work.  My app is running on iOS 8.1+.
  Any help is appreciated.</p>
  
  <p>Here's my function. I have been trying all sorts of combinations of the first two values for "keys" - everything always either fails or returns no results.  In this case, I was trying to find the font Configuration Profiles installed by the "AnyFont" app.</p>
  
  <pre><code>- (void)textFontQuery
      {
      const char *str = "AnyFont";
      CFStringRef strValue = CFStringCreateWithCString(NULL, str, kCFStringEncodingUTF8);
      const void *keys[] = { kSecClass, kSecAttrApplicationTag, kSecMatchLimit, kSecReturnAttributes };
      const void *values[] = { kSecClassKey, strValue, kSecMatchLimitAll, kCFBooleanTrue };
      CFDictionaryRef dict = CFDictionaryCreate(NULL, keys, values, 4, NULL, NULL);
      CFTypeRef certificateRef = NULL;
      OSStatus status = SecItemCopyMatching(dict, &amp;certificateRef);
      CFRelease(strValue);
      CFRelease(dict);
      if (status != noErr)
          NSLog(@"Query Failed");
  
      return;
  }
  </code></pre>