Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSFontMBS class.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 9.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
(Read only property)
NSFontMBS.boundingRectForFont as NSRectMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 9.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
The bounding rectangle is the union of the bounding rectangles of every glyph in the font.
(Read only property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 9.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
(Read only property)
NSFontMBS.coveredCharacterSet as Variant
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Value is a NSCharacterSetMBS object. Returned as Variant to reduce plugin dependencies.
The number of glyphs supported by a given font is often larger than the number of characters contained in the character set returned by this method.
(Read only property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 9.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Thus, if the longest descender extends 2 points below the baseline, descender will return –2.
(Read only property)
NSFontMBS.description as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 9.8 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
(Read only property)
NSFontMBS.displayName as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 8.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
(Read only property)
NSFontMBS.familyName as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 8.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
(Read only property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 8.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
(Read only property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 11.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
(Read and Write property)
NSFontMBS.isFixedPitch as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 9.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Returns true if all glyphs in the receiver have the same advancement; false if any advancements differ.
Some Japanese fonts encoded with the scheme "EUC12-NJE-CFEncoding" return that they have the same advancement, but actually encode glyphs with one of two advancements, for historical compatibility. You may need to handle such fonts specially for some applications.
(Read only property)
NSFontMBS.italicAngle as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 9.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Because the slant is measured counterclockwise, English italic fonts typically return a negative value.
(Read only property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 9.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Available in Mac OS X v10.4 and later.
(Read only property)
NSFontMBS.maximumAdvancement as NSSizeMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 9.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
This advancement is always either strictly horizontal or strictly vertical.
(Read only property)
NSFontMBS.mostCompatibleStringEncoding as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
You can use NSString‘s dataUsingEncoding method to convert the string to this encoding.
If this method returns NSASCIIStringEncoding, it could not determine the correct encoding and assumed that the font can render only ASCII characters.
This method works heuristically using well-known font encodings, so for nonstandard encodings it may not in fact return the optimal string encoding.
(Read only property)
NSFontMBS.numberOfGlyphs as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Glyphs are numbered starting at 0.
(Read only property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 9.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
(Read only property)
NSFontMBS.printerFont as NSFontMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 9.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
When sent to a font object representing a scalable PostScript font, returns self. When sent to a font object representing a bitmapped screen font, returns its corresponding scalable PostScript font.
(Read only property)
NSFontMBS.renderingMode as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 9.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Available in Mac OS X v10.4 and later.
(Read only property)
NSFontMBS.screenFont as NSFontMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 9.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
When sent to a font object representing a scalable PostScript font, returns a bitmapped screen font matching the receiver in typeface and matrix (or size), or nil if such a font can't be found. When sent to a font object representing a bitmapped screen font, returns nil.
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.
(Read only property)
NSFontMBS.textTransform as Variant
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Available in Mac OS X v10.4 and later.
Returns NSAffineTransformMBS. Returned as Variant to reduce plugin dependencies.
(Read only property)
NSFontMBS.underlinePosition as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 9.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
This value is usually negative, which must be considered when drawing in a flipped coordinate system.
(Read only property)
NSFontMBS.underlineThickness as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 9.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
(Read only property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 9.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
(Read only property)
The items on this page are in the following plugins: MBS MacBase Plugin.