ovidiu@net-community.com
)The font class
Copyright: (C) 1996 Free Software Foundation, Inc.
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.
- Declared in:
- AppKit/NSFont.h
Availability: Not in OpenStep/MacOS-X
- Conforms to:
- NSCoding
- NSCopying
Description forthcoming.
Return the default bold font for use in menus and
heading in standard gui components. If
fontSize is <= 0, the default size is
used.
This is deprecated in MacOSX
Description forthcoming.
Returns an autoreleased font with name
aFontName and matrix fontMatrix
.
The fontMatrix is a standard size
element matrix as used in PostScript to describe
the scaling of the font, typically it just includes the
font size as [fontSize 0 0 fontSize 0 0]. You can use
the constant NSFontIdentityMatrix in place of [1 0 0 1
0 0]. If NSFontIdentityMatrix, then the font will
automatically flip itself when set in a
flipped view.
Returns an autoreleased font with name
aFontName and size fontSize.
Fonts created using this method will
automatically flip themselves when set in a
flipped view.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Return an array of the names of preferred fonts.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Return the default font for use in menus and heading in standard gui components. If fontSize is
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.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.