Re: Getting displayName out of font file

2016-02-26 Thread Gerriet M. Denkmann
> On 27 Feb 2016, at 09:54, Ken Thomases wrote: > > On Feb 26, 2016, at 7:17 AM, Gerriet M. Denkmann wrote: >> >> On 26 Feb 2016, at 17:33, Ken Thomases wrote: >>> >>> On Feb 26, 2016, at 4:16 AM, Gerriet M. Denkmann

Re: Getting displayName out of font file

2016-02-26 Thread Ken Thomases
On Feb 26, 2016, at 7:17 AM, Gerriet M. Denkmann wrote: > > On 26 Feb 2016, at 17:33, Ken Thomases wrote: >> >> On Feb 26, 2016, at 4:16 AM, Gerriet M. Denkmann >> wrote: >>> >>> I have a file “Some Font.ttf” and I want to

Re: Getting displayName out of font file

2016-02-26 Thread Eric Dolecki
I've used that dump fonts method before there was iosfonts.com to help. I haven't tried that in agrees but seems like it should do the trick.  Sent from Outlook on my phone. On Fri, Feb 26, 2016 at 11:23 AM -0800, "Alex Zavatone" wrote: Hopefully, one of these will

Re: Getting displayName out of font file

2016-02-26 Thread Alex Zavatone
Hopefully, one of these will help. #pragma mark - Font Util // - (void)dumpFonts { for (NSString* family in [UIFont familyNames]) { NSLog(@"Font Family = %@", family); for (NSString* name in [UIFont fontNamesForFamilyName: family]) { NSLog(@"Font Name = %@",

Re: Getting displayName out of font file

2016-02-26 Thread Alex Zavatone
I've got this somewhere for iOS, I think. Give me a sec and I'll dig it up. On Feb 26, 2016, at 5:16 AM, Gerriet M. Denkmann wrote: > I have a file “Some Font.ttf” and I want to know the displayName of this > font, which might be “Some-Font” or “Nice Font” or anything else. > Or nil if this is

Re: Getting displayName out of font file

2016-02-26 Thread Gerriet M. Denkmann
> On 27 Feb 2016, at 00:37, Alex Kac wrote: > > Are you wanting this for any arbitrary font? I believe you can “install” a > font just for your application - and then use the NSFont methods to get it. > >

Re: Getting displayName out of font file

2016-02-26 Thread Alex Kac
Are you wanting this for any arbitrary font? I believe you can “install” a font just for your application - and then use the NSFont methods to get it. http://stackoverflow.com/questions/5283572/custom-font-in-a-cocoa-application > On Feb 26, 2016, at 10:31 AM, Jens Alfke

Re: Getting displayName out of font file

2016-02-26 Thread Gerriet M. Denkmann
> On 27 Feb 2016, at 00:31, Jens Alfke wrote: > > If this functionality exists it would probably be down in the CoreText > framework. Take a look there. > > —Jens As Ken Thomases kindly told me it does exist exactly there: CTFontManagerCreateFontDescriptorsFromURL.

Re: Getting displayName out of font file

2016-02-26 Thread Jens Alfke
If this functionality exists it would probably be down in the CoreText framework. Take a look there. —Jens > On Feb 26, 2016, at 2:16 AM, Gerriet M. Denkmann wrote: > > I have a file “Some Font.ttf” and I want to know the displayName of this > font, which might be

Re: Getting displayName out of font file

2016-02-26 Thread Gerriet M. Denkmann
> On 26 Feb 2016, at 17:33, Ken Thomases wrote: > > On Feb 26, 2016, at 4:16 AM, Gerriet M. Denkmann wrote: >> >> I have a file “Some Font.ttf” and I want to know the displayName of this >> font, which might be “Some-Font” or “Nice Font” or

Re: Getting displayName out of font file

2016-02-26 Thread Ken Thomases
On Feb 26, 2016, at 4:16 AM, Gerriet M. Denkmann wrote: > > I have a file “Some Font.ttf” and I want to know the displayName of this > font, which might be “Some-Font” or “Nice Font” or anything else. > Or nil if this is not a well-formatted font file. > I do NOT want to

Getting displayName out of font file

2016-02-26 Thread Gerriet M. Denkmann
I have a file “Some Font.ttf” and I want to know the displayName of this font, which might be “Some-Font” or “Nice Font” or anything else. Or nil if this is not a well-formatted font file. I do NOT want to install the font nor do anything with it. Short of reverse-engeneering the ttf format