title: CoreText equivalent for [NSFont fontWithName]
body: <p>In our app we are storing fonts for custom objects as strings containing the font name (as retrieved from the font panel) and instantiate fonts using</p>
  
  <pre><code>+ (NSFont *)fontWithName:(NSString *)fontName
  </code></pre>
  
  <p>Now when loading or importing files we'd like to check whether the font name will actually resolve on the current system.</p>
  
  <p>Due to certain design restrictions we need to perform the check in plain old C/C++, i.e. these days using <strong>CoreText</strong>.</p>
  
  <p>However, there doesn't seem to exist an equivalent CoreText API call working similarly to <code>fontWithName:</code>:</p>
  
  <ul>
  <li><code>CTFontCreateWithName</code> <em>always</em> returns a font as it uses a fallback strategy</li>
  <li><code>CTFontCopyFullName</code> appears to use different names than wha is accepted/used by <code>NSFont</code>..?</li>
  </ul>
  
  <p><strong>So basically the question is:</strong><br>
  How can we use CoreText functionality to check whether a font exists on the current system and the font can be instantiated successfully using <code>[NSFont fontWithName:]</code> later..?</p>