Platforms to show: All Mac Windows Linux Cross-Platform

Back to CTFontDescriptorMBS class.

Previous items

CTFontDescriptorMBS.kCTFontPriorityAttribute as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants keys for accessing font attributes from a font descriptor.

Key to specify or obtain the font priority used by font descriptors when resolving duplicates and sorting match results. The value associated with this key is an integer represented as a CFNumberRef object containing one of the values enumerated in "Font Priority Constants." The higher the value, the higher the priority of the font. Only registered fonts have a priority. Unregistered font descriptors return nil.
Available in OS X v10.6 and later.

CTFontDescriptorMBS.kCTFontRegistrationScopeAttribute as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants keys for accessing font attributes from a font descriptor.

Key to specify or obtain the font descriptor's registration scope. The value associated with this key is an integer represented as a number containing one of the CTFontManagerScope enumerated values. A value of nil can be returned for font descriptors that are not registered.
Available in OS X v10.6 and later.

CTFontDescriptorMBS.kCTFontSizeAttribute as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants keys for accessing font attributes from a font descriptor.

Key to obtain or specify the font point size. Creating a font with this unspecified will default to a point size of 12.0. The value for this key is represented as a number.

CTFontDescriptorMBS.kCTFontStyleNameAttribute as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants keys for accessing font attributes from a font descriptor.

Key for accessing the style name of the font. This name represents the designer's description of the font's style. The value associated with this key is a string.

CTFontDescriptorMBS.kCTFontTraitsAttribute as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants keys for accessing font attributes from a font descriptor.

Key for accessing the dictionary of font traits for stylistic information. See "Font Traits" for the list of font traits. The value associated with this key is a dictionary.

CTFontDescriptorMBS.kCTFontURLAttribute as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants keys for accessing font attributes from a font descriptor.

Key for accessing the font URL from the font descriptor. The value associated with this key is an URL string.
Available in OS X v10.6 and later.

CTFontDescriptorMBS.kCTFontVariationAttribute as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants keys for accessing font attributes from a font descriptor.

Key to obtain the font variation dictionary instance as a dictionary object. If specified in a font descriptor, fonts with the specified axes are primary match candidates; if no such fonts exist, this attribute is ignored.

Previous items

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


💬 Ask a question or report a problem
The biggest plugin in space...