Up

NSFont

Authors

Ovidiu Predescu (ovidiu@net-community.com)
The font class

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

NSFont

The NSFont class allows control of the fonts used for displaying text anywhere on the screen. The primary methods for getting a particular font are +fontWithName:matrix: and +fontWithName:size: which take the name and size of a particular font and return the NSFont object associated with that font. In addition there are several convenience mathods which make it easier to get certain types of fonts.

In particular, there are several methods to get the standard fonts used by the Application to display text for a partiuclar purpose. See the class methods listed below for more information. These default fonts can be set using the user defaults system. The default font names available are:

The default sizes are:

Font sizes list with (none) default to NSFontSize.

NSFont : NSObject

Declared in:
AppKit/NSFont.h
Conforms to:
NSCoding
NSCopying

Description forthcoming.


Instance Variables

Method summary

boldSystemFontOfSize: 

+ (NSFont*) boldSystemFontOfSize: (float)fontSize;

Return the default bold font for use in menus and heading in standard gui components. If fontSize is




Instance Variables for NSFont Class

_fontRef

@protected void* _fontRef;

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.


cachedScreenFont

@protected NSFont* cachedScreenFont;

Description forthcoming.


fontInfo

@protected id fontInfo;

Description forthcoming.


fontName

@protected NSString* fontName;

Description forthcoming.


matrix

@protected float matrix;

Description forthcoming.


matrixExplicitlySet

@protected BOOL matrixExplicitlySet;

Description forthcoming.


role

@protected int role;

Description forthcoming.


screenFont

@protected BOOL screenFont;

Description forthcoming.






Up