Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSFontDescriptorMBS class.
NSFontDescriptorMBS.fontDescriptorWithFontAttributes(AttributesDic as Dictionary) as NSFontDescriptorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
attributes: The attributes for the font descriptor. If nil, the font descriptor's dictionary will be empty.
Returns the new font descriptor.
NSFontDescriptorMBS.fontDescriptorWithName(fontName as string, matrix as Variant) as NSFontDescriptorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
fontName: The value for NSFontNameAttribute.
matrix: The value for NSFontMatrixAttribute. Must be a NSAffineTransformMBS object or nil!
Returns the new font descriptor.
Available in Mac OS X v10.4 and later.
See also:
NSFontDescriptorMBS.fontDescriptorWithName(fontName as string, size as Double) as NSFontDescriptorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
fontName: The value for NSFontNameAttribute.
size: The value for NSFontSizeAttribute.
Returns the new font descriptor.
Available in Mac OS X v10.3 and later.
See also:
NSFontDescriptorMBS.NSFontCascadeListAttribute as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
An array with sub-descriptors.
The default value is the system default cascading list for user's locale.
Available in Mac OS X v10.4 and later.
NSFontDescriptorMBS.NSFontCharacterSetAttribute as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
An NSCharacterSetMBS instance that represents the set of Unicode characters covered by the font.
The default value is supplied by the font.
Available in Mac OS X v10.4 and later.
NSFontDescriptorMBS.NSFontColorAttribute as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
An optional memoryblock that specifies the font color.
(Deprecated. Use NSForegroundColorAttributeName instead.)
Available in Mac OS X v10.3 and later.
Deprecated in Mac OS X v10.4.
NSFontDescriptorMBS.NSFontFaceAttribute as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
An optional string that specifies the font face.
NSFontDescriptorMBS.NSFontFamilyAttribute as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
An optional string that specifies the font family.
NSFontDescriptorMBS.NSFontFeatureSelectorIdentifierKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
A number specifying a font feature selector such as common ligature off, traditional character shape, and so on. See "Font Features" in ATSUI Programming Guide for predefined feature selectors.
Available in Mac OS X v10.5 and later.
NSFontDescriptorMBS.NSFontFeatureTypeIdentifierKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
A number specifying a font feature type such as ligature, character shape, and so on. See "Font Features" in ATSUI Programming Guide for predefined feature types.
Available in Mac OS X v10.5 and later.
NSFontDescriptorMBS.NSFontFixedAdvanceAttribute as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
A number containing a float value that overrides the glyph advancement specified by the font.
The default value is 0.0.
NSFontDescriptorMBS.NSFontMatrixAttribute as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
An NSAffineTransformMBS instance that specifies the font's transformation matrix.
The default value is the identity matrix.
Available in Mac OS X v10.4 and later.
NSFontDescriptorMBS.NSFontNameAttribute as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
An optional string that specifies the font name.
NSFontDescriptorMBS.NSFontSizeAttribute as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
An optional string, containing a float value, that specifies the font size.
NSFontDescriptorMBS.NSFontSlantTrait as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The relative slant angle value as a number.
The valid value range is from -1.0 to 1.0. The value of 0.0 corresponds to 0 degree clockwise rotation from the vertical and 1.0 corresponds to 30 degrees clockwise rotation.
Available in Mac OS X v10.4 and later.
NSFontDescriptorMBS.NSFontSymbolicTrait as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The symbolic traits value as a number.
Available in Mac OS X v10.4 and later.
NSFontDescriptorMBS.NSFontTraitsAttribute as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
A Dictionary instance instance fully describing font traits.
The default value is supplied by the font. See "Font traits dictionary keys" for dictionary keys.
Available in Mac OS X v10.4 and later.
NSFontDescriptorMBS.NSFontVariationAttribute as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
A dictionary instance that describes the font's variation axis.
The default value is supplied by the font. See "Font variation axis dictionary keys" for dictionary keys.
Available in Mac OS X v10.4 and later.
NSFontDescriptorMBS.NSFontVariationAxisDefaultValueKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The default axis value as a number.
Available in Mac OS X v10.4 and later.
NSFontDescriptorMBS.NSFontVariationAxisIdentifierKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The axis identifier value as a number.
Available in Mac OS X v10.4 and later.
NSFontDescriptorMBS.NSFontVariationAxisMaximumValueKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The maximum axis value as a number.
Available in Mac OS X v10.4 and later.
NSFontDescriptorMBS.NSFontVariationAxisMinimumValueKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The minimum axis value as a number.
Available in Mac OS X v10.4 and later.
NSFontDescriptorMBS.NSFontVariationAxisNameKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The localized variation axis name.
Available in Mac OS X v10.4 and later.
NSFontDescriptorMBS.NSFontVisibleNameAttribute as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
An optional string that specifies the font's visible name.
NSFontDescriptorMBS.NSFontWeightTrait as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The normalized weight value as a number.
The valid value range is from -1.0 to 1.0. The value of 0.0 corresponds to the regular or medium font weight.
Available in Mac OS X v10.4 and later.
NSFontDescriptorMBS.NSFontWidthTrait as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The relative inter-glyph spacing value as a number.
The valid value range is from -1.0 to 1.0. The value of 0.0 corresponds to the regular glyph spacing.
Available in Mac OS X v10.4 and later.
The items on this page are in the following plugins: MBS MacBase Plugin.