Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSFontDescriptorMBS class.
NSFontDescriptorMBS.Constructor(AttributesDic as Dictionary)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
attributes: The attributes for the new font descriptor. If nil, the font descriptor's attribute dictionary will be empty.
NSFontDescriptorMBS.copy as NSFontDescriptorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSFontDescriptorMBS.fontAttributes as Dictionary
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSFontDescriptorMBS.fontDescriptorByAddingAttributes(AttributesDic as Dictionary) as NSFontDescriptorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSFontDescriptorMBS.fontDescriptorWithFace(newFace as string) as NSFontDescriptorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
newFace: The new font face.
Returns the new font descriptor.
Available in Mac OS X v10.4 and later.
NSFontDescriptorMBS.fontDescriptorWithFamily(newFamily as string) as NSFontDescriptorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
newFamily: The new font family.
Returns the new font descriptor.
Available in Mac OS X v10.4 and later.
NSFontDescriptorMBS.fontDescriptorWithMatrix(matrix as Variant) as NSFontDescriptorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
matrix: The new font matrix. Must be a NSAffineTransformMBS object.
Returns the new font descriptor.
Available in Mac OS X v10.4 and later.
NSFontDescriptorMBS.fontDescriptorWithSize(newPointSize as Double) as NSFontDescriptorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
newPointSize: The new point size.
Returns the new font descriptor.
Available in Mac OS X v10.4 and later.
NSFontDescriptorMBS.fontDescriptorWithSymbolicTraits(SymbolicTraits as Integer) as NSFontDescriptorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
symbolicTraits: The new symbolic traits.
Returns the new font descriptor.
Available in Mac OS X v10.4 and later.
NSFontDescriptorMBS.matchingFontDescriptorsWithMandatoryKeys as NSFontDescriptorMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
mandatoryKeys: Optional, keys that must be identical to be matched. Can be nil.
Returns the matching font descriptors.
For example, suppose there are two versions of a given font installed that differ in the number of glyphs covered (the new version has more glyphs). If you explicitly specify NSFontNameAttribute as the only mandatory key, then a font descriptor that specifies a font name and character set by default matches both versions, since the character set attribute is not used for matching. If you specify that font name and character set keys are mandatory, the returned array contains only the font that matches both keys.
Available in Mac OS X v10.4 and later.
See also:
NSFontDescriptorMBS.matchingFontDescriptorsWithMandatoryKeys(mandatoryKeys() as string) as NSFontDescriptorMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
mandatoryKeys: Optional, keys that must be identical to be matched. Can be nil.
Returns the matching font descriptors.
For example, suppose there are two versions of a given font installed that differ in the number of glyphs covered (the new version has more glyphs). If you explicitly specify NSFontNameAttribute as the only mandatory key, then a font descriptor that specifies a font name and character set by default matches both versions, since the character set attribute is not used for matching. If you specify that font name and character set keys are mandatory, the returned array contains only the font that matches both keys.
Available in Mac OS X v10.4 and later.
See also:
NSFontDescriptorMBS.matchingFontDescriptorWithMandatoryKeys as NSFontDescriptorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
mandatoryKeys: Optional, keys that must be identical to be matched. Can be nil.
Returns the matching font descriptor.
The returned font descriptor is the first element returned from matchingFontDescriptorsWithMandatoryKeys.
See also:
NSFontDescriptorMBS.matchingFontDescriptorWithMandatoryKeys(mandatoryKeys() as string) as NSFontDescriptorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
mandatoryKeys: Optional, keys that must be identical to be matched. Can be nil.
Returns the matching font descriptor.
The returned font descriptor is the first element returned from matchingFontDescriptorsWithMandatoryKeys.
See also:
NSFontDescriptorMBS.matrix as Variant
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Must be a NSAffineTransformMBS object or nil!
NSFontDescriptorMBS.pointSize as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSFontDescriptorMBS.postscriptName as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSFontDescriptorMBS.symbolicTraits as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Typeface information is specified by the lower 16 bits of system trait value.
The font family class constants classify certain stylistic qualities of the font. These values correspond closely to the font class values in the OpenType OS/2 table. The class values are bundled in the upper four bits of the NSFontSymbolicTraits and can be accessed via NSFontFamilyClassMask. For more information about the specific meaning of each identifier, refer to the OpenType specification.
NSFontDescriptorMBS.variantForKey(key as string) as Variant
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The items on this page are in the following plugins: MBS MacBase Plugin.