I want to use the "SF Pro Text" font in my app. It works fine when I build my app on my main computer (running macOS11 Big Sur), but I have a 2nd part ...
I want to use the "SF Pro Text" font in my app. It works fine when I build my app on my main computer (running macOS11 Big Sur), but I have a 2nd part ...
Above line of code used to work just fine but now it is not working in Catalina. I am getting nil for fontRef. .SFNS-Light stills show as available ...
I wrote this in Xcode 8 Beta 6 (8S201h): guard let faceMembers = NSFontManager.shared().availableMembers(ofFontFamily: familyName ?? fontName) else { ...
I want to achieve the same thing as [[NSFontManager sharedFontManager] addFontTrait:(nullable id)sender] only using my code The doc states so i tr ...
So I have this app that I'm writing to get familiar with Swift and programming for OSX. It's a note-taking app. The note window consists of an NSTextV ...
I am having a mac app in which I have custom font which is not there in my custom font book of application folder in my mac. So, when an app launches ...
I have an application where I user need to modify style (font, size, bold, back and fore colors,...) How can I load the initial style in the FontPanel ...
In Xcode 6 Beta 6, I am unable to use any NSFontManager methods in Swift. For example: I always get the error: NSFontManager does not have a membe ...
I'd like to enable the user to change the font of an view-based NSTableView. I'm using Cocoa bindings and Core Data. In my test code, I do have a chan ...
I have a NSTextView that I want to add format buttons for (bold, italics, etc). Right now, I have a button set to "toggle" type, with different imag ...
Tinkering with the NSFontPanel here. It would appear that, if you resize the stock panel wide enough, you automagically get the ability to turn shadow ...
I want to make a popup button like the one in Pages.app (or in TextEdit.app) whose menu is a filtered list of font families. I can get an array of a ...
I am looking at a sample app that involves some text editing. It has some font formatting buttons like this: I can't find where in the code these a ...
I am Trying to Create a NSComboBox like the image attached with the list of Fonts. Any body knows and custom special control is available. I have kep ...
According to the documentation, you should set an <NSFontManagerDelegate> to the shared instance of NSFontManager. The delegate should implement ...
How can you get an NSArray of fonts or fontfamilies that are "contained" by an NSFontCollection? All NSFont and NSFontManager methods seem to require ...
I'm trying to change the letter spacing in a NSFont (such as Gill Sans). Is this possible or will I need to load my own custom font? ...
Okay so I've checked all over S.O. and all over Google and I can't find what is wrong with my code: The font panel pops up, but when I select a fon ...
I would like to receive the changeFont: and changeColor: messages in a WebView subclass. According to the documentation, these methods are sent by N ...
I can't get selected font in NSFontManager. What I need: 1) I need to get selected font title, size, color? I am calling NSFontManager with button l ...