Listing of Fonts & Postscript Fonts

This is probably another one of those easy questions, but is the library I need to look at to get the Fonts available on the iOS device along with the Postscript names?

Since iOSFont uses the Postscript name I feel this is a pretty critical piece of information!

[quote=150506:@Bob Keeney]This is probably another one of those easy questions, but is the library I need to look at to get the Fonts available on the iOS device along with the Postscript names?

Since iOSFont uses the Postscript name I feel this is a pretty critical piece of information![/quote]

iOS as of now does not provide a list of installed fonts such as what is available in OS X with FontCount.

But iOS comes with a list of fonts which are represented and listed at iosfonts.com or on Wikipedia, among other places. Since installing new fonts on an iOS device is not exactly simple, and at any rate not provided as default, never assume other fonts will be present.

You can of course try to create a particular iOSFont in a Try catch block, and if it is not there, then you know it has not been installed.

Please note that you can install custom fonts in your app if you need them, in a very similar way as what was done with ATSFonts in Mac OS X. See http://iosdevelopertips.com/user-interface/how-to-use-a-custom-font-on-ios.html

Well, that list works, I guess, row now. I was hoping for a system call to get the family and the Postscript font names.

The method exists in the framework and is listed here in OC :

Then it is necessary to build the declares. I looked in MacOSLib in the hope to find a template, but no luck.

It maybe easier with the Swift example (closer to Xojo’s declare syntax) at https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIFont_Class/index.html#//apple_ref/doc/uid/TP40006891

That method is certainly nice to have if there are other fonts installed on the device, just like the ones I sell :slight_smile: