2001-12-17 16:51:51 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>NSFont</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>NSFont</h1>
|
|
|
|
<h3>Authors</h3>
|
|
|
|
<dl>
|
|
|
|
<dt>Ovidiu Predescu(<a href="mailto:ovidiu@net-community.com"><code>
|
|
|
|
ovidiu@net-community.com
|
|
|
|
</code></a>)</dt>
|
|
|
|
<dd>
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
<blockquote>
|
|
|
|
The font class </blockquote>
|
|
|
|
<p>Copyright: (C) 1996 Free Software Foundation, Inc.</p>
|
|
|
|
<h1>
|
|
|
|
Software documentation for the NSFont class
|
|
|
|
</h1>
|
|
|
|
<h2><a name="class$NSFont">NSFont</a> : NSObject</h2>
|
|
|
|
Declared: AppKit/NSFont.h<br />
|
|
|
|
Conform: NSCoding<br />
|
|
|
|
Conform: NSCopying<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<h3>boldSystemFontOfSize:</a></h3>
|
|
|
|
+ (<a href="#class$NSFont">NSFont</a>*) <b>boldSystemFontOfSize:</b> (float)fontSize;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>controlContentFontOfSize:</a></h3>
|
|
|
|
+ (<a href="#class$NSFont">NSFont</a>*) <b>controlContentFontOfSize:</b> (float)fontSize;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>fontWithName:matrix:</a></h3>
|
|
|
|
+ (<a href="#class$NSFont">NSFont</a>*) <b>fontWithName:</b> (NSString*)name<b> matrix:</b> (const float*)fontMatrix;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>fontWithName:size:</a></h3>
|
|
|
|
+ (<a href="#class$NSFont">NSFont</a>*) <b>fontWithName:</b> (NSString*)name<b> size:</b> (float)fontSize;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>labelFontOfSize:</a></h3>
|
|
|
|
+ (<a href="#class$NSFont">NSFont</a>*) <b>labelFontOfSize:</b> (float)fontSize;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>labelFontSize</a></h3>
|
|
|
|
+ (float) <b>labelFontSize</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>menuFontOfSize:</a></h3>
|
|
|
|
+ (<a href="#class$NSFont">NSFont</a>*) <b>menuFontOfSize:</b> (float)fontSize;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>messageFontOfSize:</a></h3>
|
|
|
|
+ (<a href="#class$NSFont">NSFont</a>*) <b>messageFontOfSize:</b> (float)fontSize;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>paletteFontOfSize:</a></h3>
|
|
|
|
+ (<a href="#class$NSFont">NSFont</a>*) <b>paletteFontOfSize:</b> (float)fontSize;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>preferredFontNames</a></h3>
|
|
|
|
+ (NSArray*) <b>preferredFontNames</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>setPreferredFontNames:</a></h3>
|
|
|
|
+ (void) <b>setPreferredFontNames:</b> (NSArray*)fontNames;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>setUserFixedPitchFont:</a></h3>
|
|
|
|
+ (void) <b>setUserFixedPitchFont:</b> (<a href="#class$NSFont">NSFont</a>*)font;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>setUserFont:</a></h3>
|
|
|
|
+ (void) <b>setUserFont:</b> (<a href="#class$NSFont">NSFont</a>*)font;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>smallSystemFontSize</a></h3>
|
|
|
|
+ (float) <b>smallSystemFontSize</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>systemFontOfSize:</a></h3>
|
|
|
|
+ (<a href="#class$NSFont">NSFont</a>*) <b>systemFontOfSize:</b> (float)fontSize;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>systemFontSize</a></h3>
|
|
|
|
+ (float) <b>systemFontSize</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>titleBarFontOfSize:</a></h3>
|
|
|
|
+ (<a href="#class$NSFont">NSFont</a>*) <b>titleBarFontOfSize:</b> (float)fontSize;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>toolTipsFontOfSize:</a></h3>
|
|
|
|
+ (<a href="#class$NSFont">NSFont</a>*) <b>toolTipsFontOfSize:</b> (float)fontSize;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>useFont:</a></h3>
|
|
|
|
+ (void) <b>useFont:</b> (NSString*)name;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>userFixedPitchFontOfSize:</a></h3>
|
|
|
|
+ (<a href="#class$NSFont">NSFont</a>*) <b>userFixedPitchFontOfSize:</b> (float)fontSize;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>userFontOfSize:</a></h3>
|
|
|
|
+ (<a href="#class$NSFont">NSFont</a>*) <b>userFontOfSize:</b> (float)fontSize;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>advancementForGlyph:</a></h3>
|
|
|
|
- (NSSize) <b>advancementForGlyph:</b> (NSGlyph)aGlyph;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>afmDictionary</a></h3>
|
|
|
|
- (NSDictionary*) <b>afmDictionary</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>afmFileContents</a></h3>
|
|
|
|
- (NSString*) <b>afmFileContents</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>ascender</a></h3>
|
|
|
|
- (float) <b>ascender</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>boundingRectForFont</a></h3>
|
|
|
|
- (NSRect) <b>boundingRectForFont</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>boundingRectForGlyph:</a></h3>
|
|
|
|
- (NSRect) <b>boundingRectForGlyph:</b> (NSGlyph)aGlyph;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>capHeight</a></h3>
|
|
|
|
- (float) <b>capHeight</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>defaultLineHeightForFont</a></h3>
|
|
|
|
- (float) <b>defaultLineHeightForFont</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>descender</a></h3>
|
|
|
|
- (float) <b>descender</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>displayName</a></h3>
|
|
|
|
- (NSString*) <b>displayName</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>encodingScheme</a></h3>
|
|
|
|
- (NSString*) <b>encodingScheme</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>familyName</a></h3>
|
|
|
|
- (NSString*) <b>familyName</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>fontName</a></h3>
|
|
|
|
- (NSString*) <b>fontName</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>glyphIsEncoded:</a></h3>
|
|
|
|
- (BOOL) <b>glyphIsEncoded:</b> (NSGlyph)aGlyph;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>glyphPacking</a></h3>
|
|
|
|
- (NSMultibyteGlyphPacking) <b>glyphPacking</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>glyphWithName:</a></h3>
|
|
|
|
- (NSGlyph) <b>glyphWithName:</b> (NSString*)glyphName;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>isBaseFont</a></h3>
|
|
|
|
- (BOOL) <b>isBaseFont</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>isFixedPitch</a></h3>
|
|
|
|
- (BOOL) <b>isFixedPitch</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>italicAngle</a></h3>
|
|
|
|
- (float) <b>italicAngle</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>matrix</a></h3>
|
|
|
|
- (const float*) <b>matrix</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>maximumAdvancement</a></h3>
|
|
|
|
- (NSSize) <b>maximumAdvancement</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>minimumAdvancement</a></h3>
|
|
|
|
- (NSSize) <b>minimumAdvancement</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>mostCompatibleStringEncoding</a></h3>
|
|
|
|
- (NSStringEncoding) <b>mostCompatibleStringEncoding</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>pointSize</a></h3>
|
|
|
|
- (float) <b>pointSize</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>positionOfGlyph:forCharacter:struckOverRect:</a></h3>
|
|
|
|
- (NSPoint) <b>positionOfGlyph:</b> (NSGlyph)aGlyph<b> forCharacter:</b> (unichar)aChar<b> struckOverRect:</b> (NSRect)aRect;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>positionOfGlyph:precededByGlyph:isNominal:</a></h3>
|
|
|
|
- (NSPoint) <b>positionOfGlyph:</b> (NSGlyph)curGlyph<b> precededByGlyph:</b> (NSGlyph)prevGlyph<b> isNominal:</b> (BOOL*)nominal;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>positionOfGlyph:struckOverGlyph:metricsExist:</a></h3>
|
|
|
|
- (NSPoint) <b>positionOfGlyph:</b> (NSGlyph)aGlyph<b> struckOverGlyph:</b> (NSGlyph)baseGlyph<b> metricsExist:</b> (BOOL*)flag;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>positionOfGlyph:struckOverRect:metricsExist:</a></h3>
|
|
|
|
- (NSPoint) <b>positionOfGlyph:</b> (NSGlyph)aGlyph<b> struckOverRect:</b> (NSRect)aRect<b> metricsExist:</b> (BOOL*)flag;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>positionOfGlyph:withRelation:toBaseGlyph:totalAdvancement:metricsExist:</a></h3>
|
|
|
|
- (NSPoint) <b>positionOfGlyph:</b> (NSGlyph)aGlyph<b> withRelation:</b> (NSGlyphRelation)relation<b> toBaseGlyph:</b> (NSGlyph)baseGlyph<b> totalAdvancement:</b> (NSSize*)offset<b> metricsExist:</b> (BOOL*)flag;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>positionsForCompositeSequence:numberOfGlyphs:pointArray:</a></h3>
|
|
|
|
- (int) <b>positionsForCompositeSequence:</b> (NSGlyph*)glyphs<b> numberOfGlyphs:</b> (int)numGlyphs<b> pointArray:</b> (NSPoint*)points;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>printerFont</a></h3>
|
|
|
|
- (<a href="#class$NSFont">NSFont</a>*) <b>printerFont</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>screenFont</a></h3>
|
|
|
|
- (<a href="#class$NSFont">NSFont</a>*) <b>screenFont</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>set</a></h3>
|
|
|
|
- (void) <b>set</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>underlinePosition</a></h3>
|
|
|
|
- (float) <b>underlinePosition</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>underlineThickness</a></h3>
|
|
|
|
- (float) <b>underlineThickness</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>widthOfString:</a></h3>
|
|
|
|
- (float) <b>widthOfString:</b> (NSString*)string;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>xHeight</a></h3>
|
|
|
|
- (float) <b>xHeight</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h1>
|
|
|
|
Software documentation for the NSFont(GNUstep)
|
|
|
|
category
|
|
|
|
</h1>
|
|
|
|
<h2><a href="#class$NSFont">NSFont</a>(<a name="category$NSFont(GNUstep)">GNUstep</a>)</h2>
|
|
|
|
Declared: AppKit/NSFont.h<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<h3>fontInfo</a></h3>
|
|
|
|
- (GSFontInfo*) <b>fontInfo</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
</body>
|
|
|
|
</html>
|