Up

# NSFontPanel

### Authors

Fred Kiefer (`FredKiefer@gmx.de`)
Nicola Pero (`n.pero@mi.flashnet.it`)

> System generic panel for selecting and previewing fonts

Copyright: (C) 1996 Free Software Foundation, Inc.

### Contents -

1. Software documentation for the NSFontPanel class
2. Software documentation for the NSObject(NSFontPanelValidation) informal protocol

# Software documentation for the NSFontPanel class

## NSFontPanel : NSPanel

> Declared in:
>   AppKit/NSFontPanel.h

> Conforms to:
>   NSTextFieldDelegate

Availability: OpenStep
Description forthcoming.

Instance Variables
Method summary

- +sharedFontPanel
- +sharedFontPanelExists
- -accessoryView
- -isEnabled
- -panelConvertFont:
- -reloadDefaultFontFamilies
- -setAccessoryView:
- -setEnabled:
- -setPanelFont:isMultiple:
- -worksWhenModal

### sharedFontPanel

+ (NSFontPanel*) sharedFontPanel;
Availability: OpenStep

Creates (if needed) and returns the shared NSFontPanel.

### sharedFontPanelExists

+ (BOOL) sharedFontPanelExists;
Availability: OpenStep
Description forthcoming.

### accessoryView

- (NSView*) accessoryView;
Availability: OpenStep

Returns the NSFontPanel's accessory view.

See Also: -setAccessoryView:

### isEnabled

- (BOOL) isEnabled;
Availability: OpenStep

Returns whether the "set" button is enabled.

See Also: -setEnabled:

### panelConvertFont:

- (NSFont*) panelConvertFont: (NSFont*)fontObject;
Availability: OpenStep

Converts the NSFont fontObject

### reloadDefaultFontFamilies

- (void) reloadDefaultFontFamilies;
Availability: OpenStep
Description forthcoming.

### setAccessoryView:

- (void) setAccessoryView: (NSView*)aView;
Availability: OpenStep

Sets the NSFontPanel's accessory view to aView

See Also: -accessoryView

### setEnabled:

- (void) setEnabled: (BOOL)flag;
Availability: OpenStep

Sets whether the "set" button is enabled.

See Also: -isEnabled

### setPanelFont: isMultiple:

- (void) setPanelFont: (NSFont*)fontObject isMultiple: (BOOL)flag;
Availability: OpenStep
Description forthcoming.

### worksWhenModal

- (BOOL) worksWhenModal;
Availability: OpenStep

Overides the NSPanel/NSWindow method to always returns `YES`

## Instance Variables for NSFontPanel Class

### _accessoryView

@protected NSView* _accessoryView;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _bottomView

@protected NSView* _bottomView;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _face

@protected int _face;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _faceList

@protected NSArray* _faceList;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _family

@protected int _family;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _familyList

@protected NSArray* _familyList;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _multiple

@protected BOOL _multiple;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _originalMinSize

@protected NSSize _originalMinSize;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _originalSize

@protected NSSize _originalSize;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _panelFont

@protected NSFont* _panelFont;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _preview

@protected BOOL _preview;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _previewString

@protected NSString* _previewString;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _topView

@protected NSView* _topView;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _traits

@protected NSFontTraitMask _traits;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _weight

@protected int _weight;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

# Software documentation for the NSObject(NSFontPanelValidation) informal protocol

## NSObject(NSFontPanelValidation)

> Declared in:
>   AppKit/NSFontPanel.h

Availability: MacOS-X 10.3.0
Description forthcoming.
Method summary

- -validModesForFontPanel:

### validModesForFontPanel:

- (unsigned int) validModesForFontPanel: (NSFontPanel*)fontPanel;
Availability: MacOS-X 10.3.0
Description forthcoming.

Up