Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSFontMBS class.

NSFontMBS.advancementForGlyph(aGlyph as Integer) as NSSizeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the nominal spacing for the given glyph—the distance the current point moves after showing the glyph—accounting for the receiver's size.

This spacing is given according to the glyph's movement direction, which is either strictly horizontal or strictly vertical.

NSFontMBS.boundingRectForGlyph(aGlyph as Integer) as NSRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the bounding rectangle for the specified glyph, scaled to the receiver's size.

Japanese fonts encoded with the scheme "EUC12-NJE-CFEncoding" do not have individual metrics or bounding boxes available for the glyphs above 127. For those glyphs, this method returns the bounding rectangle for the font instead.

NSFontMBS.Constructor   Private

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 13.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The private constructor.

NSFontMBS.file as folderitem

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 13.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Queries the folderitem for this font.

One file may give several font faces.

NSFontMBS.fontDescriptor as NSFontDescriptorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 12.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the receiver's font descriptor.

A font descriptor object that describes the receiver.

The font descriptor contains a mutable dictionary of optional attributes for creating an NSFont object. See documentation on NSFontDescriptor for more information.

NSFontMBS.glyphWithName(name as string) as UInt32

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the named encoded glyph, or –1 if the receiver contains no such glyph.

Returns –1 if the glyph named glyphName isn't encoded.
Glyph names in fonts do not always accurately identify the glyph. If possible, look up the appropriate glyph on your own.

NSFontMBS.screenFontWithRenderingMode(renderingMode as Integer) as NSFontMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns a bitmapped screen font, when sent to a font object representing a scalable PostScript font, with the specified rendering mode, matching the receiver in typeface and matrix (or size), or nil if such a font can't be found.

For valid rendering modes, see NSFontRenderingMode.
Screen fonts are for direct use with the window server only. Never use them with Application Kit objects, such as in setFont: methods. Internally, the Application Kit automatically uses the corresponding screen font for a font object as long as the view is not rotated or scaled.
Available in Mac OS X v10.4 and later.

The items on this page are in the following plugins: MBS MacBase Plugin.


The biggest plugin in space...