Up

# NSFontDescriptor

### Authors

H. Nikolaus Schaller (`hns@computer.org`)

> The font descriptor class

Copyright: (C) 2007-2016 Free Software Foundation, Inc.

# Software documentation for the NSFontDescriptor class

## NSFontDescriptor : NSObject

> Declared in:
>   AppKit/NSFontDescriptor.h

> Conforms to:
>   NSCoding
>   NSCopying

Availability: MacOS-X 10.3.0
Description forthcoming.

Instance Variables
Method summary

- +fontDescriptorWithFontAttributes:
- +fontDescriptorWithName:matrix:
- +fontDescriptorWithName:size:
- -fontAttributes
- -fontDescriptorByAddingAttributes:
- -fontDescriptorWithFace:
- -fontDescriptorWithFamily:
- -fontDescriptorWithMatrix:
- -fontDescriptorWithSize:
- -fontDescriptorWithSymbolicTraits:
- -initWithFontAttributes:
- -matchingFontDescriptorWithMandatoryKeys:
- -matchingFontDescriptorsWithMandatoryKeys:
- -matrix
- -objectForKey:
- -pointSize
- -postscriptName
- -symbolicTraits

### fontDescriptorWithFontAttributes:

+ (id) fontDescriptorWithFontAttributes: (NSDictionary*)attributes;
Availability: MacOS-X 10.3.0
Description forthcoming.

### fontDescriptorWithName: matrix:

+ (id) fontDescriptorWithName: (NSString*)name matrix: (NSAffineTransform*)matrix;
Availability: MacOS-X 10.4.0
Description forthcoming.

### fontDescriptorWithName: size:

+ (id) fontDescriptorWithName: (NSString*)name size: (CGFloat)size;
Availability: MacOS-X 10.3.0
Description forthcoming.

### fontAttributes

- (NSDictionary*) fontAttributes;
Availability: MacOS-X 10.3.0
Description forthcoming.

### fontDescriptorByAddingAttributes:

- (NSFontDescriptor*) fontDescriptorByAddingAttributes: (NSDictionary*)attributes;
Availability: MacOS-X 10.4.0
Description forthcoming.

### fontDescriptorWithFace:

- (NSFontDescriptor*) fontDescriptorWithFace: (NSString*)face;
Availability: MacOS-X 10.4.0
Description forthcoming.

### fontDescriptorWithFamily:

- (NSFontDescriptor*) fontDescriptorWithFamily: (NSString*)family;
Availability: MacOS-X 10.4.0
Description forthcoming.

### fontDescriptorWithMatrix:

- (NSFontDescriptor*) fontDescriptorWithMatrix: (NSAffineTransform*)matrix;
Availability: MacOS-X 10.4.0
Description forthcoming.

### fontDescriptorWithSize:

- (NSFontDescriptor*) fontDescriptorWithSize: (CGFloat)size;
Availability: MacOS-X 10.4.0
Description forthcoming.

### fontDescriptorWithSymbolicTraits:

- (NSFontDescriptor*) fontDescriptorWithSymbolicTraits: (NSFontSymbolicTraits)symbolicTraits;
Availability: MacOS-X 10.4.0
Description forthcoming.

### initWithFontAttributes:

- (id) initWithFontAttributes: (NSDictionary*)attributes;
Availability: MacOS-X 10.3.0
Description forthcoming.

### matchingFontDescriptorWithMandatoryKeys:

- (NSFontDescriptor*) matchingFontDescriptorWithMandatoryKeys: (NSSet*)keys;
Availability: MacOS-X 10.5.0
Description forthcoming.

### matchingFontDescriptorsWithMandatoryKeys:

- (NSArray*) matchingFontDescriptorsWithMandatoryKeys: (NSSet*)keys;
Availability: MacOS-X 10.4.0
Description forthcoming.

### matrix

- (NSAffineTransform*) matrix;
Availability: MacOS-X 10.4.0
Description forthcoming.

### objectForKey:

- (id) objectForKey: (NSString*)attribute;
Availability: MacOS-X 10.4.0
Description forthcoming.

### pointSize

- (CGFloat) pointSize;
Availability: MacOS-X 10.4.0
Description forthcoming.

### postscriptName

- (NSString*) postscriptName;
Availability: MacOS-X 10.4.0
Description forthcoming.

### symbolicTraits

- (NSFontSymbolicTraits) symbolicTraits;
Availability: MacOS-X 10.4.0
Description forthcoming.

## Instance Variables for NSFontDescriptor Class

### _attributes

@protected NSDictionary* _attributes;
Availability: MacOS-X 10.3.0
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.

Up