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 (whic
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 install the font nor do
> 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 anything else.
>> Or nil if this is not a well-forma
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 “Some-Font” or “Nice Font”
> 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.
Kind regards,
Gerriet.
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 wrote:
>
> If this fun
> 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.
>
> http://stackoverflow.com/questions/5283572/custom-font-in-a-cocoa-application
I do not w
Is there a way to query the keyboard equivalent for Cycle Windows? Or maybe a
notification of some sort that Cycle Windows has been triggered?
Thanks!
-John Weeks
WaveMetrics, inc.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do no
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
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 = %@", na
I have struggled long and hard with this .. I think I’ve looked at 'everything'
related on Google, but I’m still flummoxed.
This is on Mac OS 10.11.3, build with Xcode 7.2, and this is what I think is
the salient code.
override func viewDidLoad() {
super.viewDidLoad()
let s
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 help.
#pragma m
The intelligence boosting power of posting a question strikes again.
The problem was that in the Mac OS X Storyboard, the "Rendering API" of the
SCNView was initialized to "unknown" when it needed to be "Metal"
(curiously, "OpenGL" and "Default" don't render the overlay either). This
is the "rend
So, NSError.h declares NSURLErrorKey, as a userInfo key for the URL associated
with the error.
And NSURLError.h declares NSURLErrorFailingURLErrorKey, which appears to have
the same purpose.
Neither of these is deprecated, although there’s yet another constant
(NSErrorFailingURLStringKey) that i
On Feb 26, 2016, at 16:33 , Jens Alfke wrote:
>
> What’s the difference between these? If I’m creating an NSError and adding a
> URL to it, which one is preferred?
According to NSError documentation:
> • NSURLErrorKey
> The corresponding value is an NSURL object.
>
> • NSURLErrorFailingURLErr
It seems like the shorter one would be for a "click here to see more
information or open this file URL" and the longer one is for "this URL failed
to load".
But it definitely deserves a docs bug.
It might be one of those obscure things noted in some programming guide doc,
but even if it is tha
> On Feb 26, 2016, at 4:48 PM, Quincey Morris
> wrote:
>
> According to NSError documentation:
Thanks, but I did read the documentation before asking.
> On Feb 26, 2016, at 4:53 PM, dangerwillrobinsondan...@gmail.com wrote:
>
> It seems like the shorter one would be for a "click here to se
On Feb 26, 2016, at 18:12 , Jens Alfke wrote:
>
> Thanks, but I did read the documentation before asking.
Then your question makes no sense. One of the URL keys is specific to
NSURLErrorDomain, and that isn’t your error domain to use. That means your only
standard choice is the other URL key.
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 know the displayName of this
>>> font, which might be “Some-Font” or
> 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
>>> wrote:
I have a file “Some Font.ttf” and I want to know th
20 matches
Mail list logo