[Previous] [Up] [Next]

NSFont

Authors

Richard Frith-Macdonald

Version: $Revision$

Date: $Date$

NSFont

NSFont

Declared in: Gui/NSFont.h

Inherits from: NSObject

Conforms to: NSCoding


Instance Variables

Methods


Class Methods

boldSystemFontOfSize:

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

controlContentFontOfSize:

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

fontWithName:

+ (NSFont*) fontWithName: (NSString*)typeface;

fontWithName:

+ (NSFont*) fontWithName: (NSString*)fontName;

menuFontOfSize:

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

messageFontOfSize:

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

paletteFontOfSize:

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

preferredFontNames

+ (NSArray*) preferredFontNames;

setPreferredFontNames:

+ (void) setPreferredFontNames: (NSArray*)fontNames;

setUserFixedPitchFont:

+ (void) setUserFixedPitchFont: (NSFont*)aFont;

setUserFont:

+ (void) setUserFont: (NSFont*)aFont;

systemFontOfSize:

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

titleBarFontOfSize:

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

toolTipsFontOfSize:

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

useFont:

+ (void) useFont: (NSString*)fontName;

userFixedPitchFontOfSize:

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

userFontOfSize:

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


Instances Methods

advancementForGlyph:

- (NSSize) advancementForGlyph: (NSGlyph)aGlyph;

afmFileContents

- (NSString*) afmFileContents;

ascender

- (float) ascender;

boundingRectForFont

- (NSRect) boundingRectForFont;

boundingRectForGlyph:

- (NSRect) boundingRectForGlyph: (NSGlyph)aGlyph;

capHeight

- (float) capHeight;

descender

- (float) descender;

displayName

- (NSString*) displayName;

encodingScheme

- (NSString*) encodingScheme;

familyName

- (NSString*) familyName;

fontName

- (NSString*) fontName;

glyphIsEncoded:

- (BOOL) glyphIsEncoded: (NSGlyph)aGlyph;

glyphPacking

- (NSMultibyteGlyphPacking) glyphPacking;

glyphWithName:

- (NSGlyph) glyphWithName: (NSString*)glyphName;

isBaseFont

- (BOOL) isBaseFont;

isFixedPitch

- (BOOL) isFixedPitch;

italicAngle

- (float) italicAngle;

matrix

- (constfloat*) matrix;

maximumAdvancement

- (NSSize) maximumAdvancement;

mostCompatibleStringEncoding

- (NSStringEncoding) mostCompatibleStringEncoding;

pointSize

- (float) pointSize;

positionOfGlyph:forCharacter:struckOverRect:

- (NSPoint) positionOfGlyph: (NSGlyph)aGlyph forCharacter: (unichar)aChar struckOverRect: (NSRect)aRect;

positionOfGlyph:precededByGlyph:

- (NSPoint) positionOfGlyph: (NSGlyph)aGlyph precededByGlyph: (NSGlyph)prevGlyph;

positionOfGlyph:struckOverGlyph:metricsExist:

- (NSPoint) positionOfGlyph: (NSGlyph)aGlyph struckOverGlyph: (NSGlyph)baseGlyph metricsExist: (BOOL*)flag;

positionOfGlyph:struckOverRect:metricsExist:

- (NSPoint) positionOfGlyph: (NSGlyph)aGlyph struckOverRect: (NSRect)aRect metricsExist: (BOOL*)flag;

positionOfGlyph:withRelation:toBaseGlyph:totalAdvancement:metricsExist:

- (NSPoint) positionOfGlyph: (NSGlyph)aGlyph withRelation: (NSGlyphRelation)relation toBaseGlyph: (NSGlyph)baseGlyph totalAdvancement: (NSSizePointer)offset metricsExist: (BOOL*)flag;

positionsForCompositeSequence:numberOfGlyphs:pointArray:

- (int) positionsForCompositeSequence: (NSGlyph*)glyphs numberOfGlyphs: (int)numGlyphs pointArray: (NSPointArray)points;

printerFont

- (NSFont*) printerFont;

screenFont

- (NSFont*) screenFont;

set

- (void) set;

underlinePosition

- (float) underlinePosition;

underlineThickness

- (float) underlineThickness;

widthOfString:

- (float) widthOfString: (NSString*)aString;

widths

- (float*) widths;

xHeight

- (float) xHeight;