Questions tagged [nsfontpanel]

A Cocoa-based user interface for easily selecting NSFont objects.

23 questions
1
vote
1 answer

NSTextView, NSFontManager, and changeAttributes()

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 NSTextView and a button that brings up an NSFontPanel. Changing the font works great. Selecting a size? No…
Chris
  • 1,013
  • 1
  • 15
  • 35
1
vote
2 answers

Issue with NSFontPanel

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 and get the new attributes after user validation? I tried a lot of different things but without…
AP.
  • 5,205
  • 7
  • 50
  • 94
1
vote
1 answer

NSFontPanel: Shadow color -- where art thou?

Tinkering with the NSFontPanel here. It would appear that, if you resize the stock panel wide enough, you automagically get the ability to turn shadows on/off, the shadow opacity, blur, offset and direction. Even works in TextEdit. Nice. However,…
zzyzy
  • 973
  • 6
  • 21
1
vote
1 answer

Filtering Font Panel from NSToolbar

I've got NSToolbar with Fonts item. Is it possible to set filter for fonts in Fonts table? For example I don't want Arial in font family table. Or second way - Is it possible to make own group in Fonts as Collection? Thx 4 reply.
Michal Jurník
  • 820
  • 1
  • 8
  • 23
0
votes
0 answers

SwiftUI - NSFontPanel and Color Picker

I am trying to get NSFontPanel/NSFontManager to work in a SwiftUI Document Template app. I have the following which is a customize version of one I found on GitHub. This lets me pick the size, face, style, etc. Interestingly, a color picker is…
0
votes
1 answer

How to retrieve only font style(Bold,italic,Bold Italic) from font panel(NSFontPanel) and color?

I am retrieving a value from NSFontPanel, which changes the font family, style of text. But I want only Font Style and color separately that I have selected from NSFontPanel. I am not getting how to get that. NSFont *font =[fontmanager…
Greshi Gupta
  • 831
  • 2
  • 10
  • 16
0
votes
2 answers

Like create a Font Menu as in Microsoft Word in my Mac OSX Cocoa Application

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 kept the image in dropbox
user226372
  • 165
  • 1
  • 9
0
votes
1 answer

NSFontPanel - How to handle closing

I need to handle that NSFontPanel has been closed. Is there any method which is called, when that happens? Thx for reply.
Michal Jurník
  • 820
  • 1
  • 8
  • 23
1
2