Platforms to show: All Mac Windows Linux Cross-Platform

Back to CTFontDescriptorMBS class.

CTFontDescriptorMBS.DisplayName as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 15.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The display name.
Example
dim f as CTFontMBS = CTFontMBS.CreateWithName("Times")
dim d as CTFontDescriptorMBS = f.FontDescriptor
MsgBox d.DisplayName

(Read only property)

CTFontDescriptorMBS.FamilyName as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 15.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The family name.
Example
dim f as CTFontMBS = CTFontMBS.CreateWithName("Times")
dim d as CTFontDescriptorMBS = f.FontDescriptor
MsgBox d.FamilyName

(Read only property)

CTFontDescriptorMBS.File as FolderItem

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 15.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The font file.
Example
dim f as CTFontMBS = CTFontMBS.CreateWithName("Times")
dim d as CTFontDescriptorMBS = f.FontDescriptor
MsgBox d.file.NativePath

(Read only property)

CTFontDescriptorMBS.FontSize as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 15.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The font size.
Example
dim f as CTFontMBS = CTFontMBS.CreateWithName("Times")
dim d as CTFontDescriptorMBS = f.FontDescriptor
MsgBox str(d.FontSize)

Can be zero if unknown.
(Read only property)

CTFontDescriptorMBS.Name as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 15.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The PostScript name.
Example
dim f as CTFontMBS = CTFontMBS.CreateWithName("Times")
dim d as CTFontDescriptorMBS = f.FontDescriptor
MsgBox d.Name

When matching, this is treated more generically: the system first tries to find fonts with this PostScript name. If none is found, the system tries to find fonts with this family name, and, finally, if still nothing, tries to find fonts with this display name.
(Read only property)

CTFontDescriptorMBS.StyleName as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 15.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The style name.
Example
dim f as CTFontMBS = CTFontMBS.CreateWithName("Times")
dim d as CTFontDescriptorMBS = f.FontDescriptor
MsgBox d.StyleName

This name represents the designer's description of the font's style.
Can be empty if unknown.
(Read only property)

CTFontDescriptorMBS.URL as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 15.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The font URL.
Example
dim f as CTFontMBS = CTFontMBS.CreateWithName("Times")
dim d as CTFontDescriptorMBS = f.FontDescriptor
MsgBox d.URL

(Read only property)

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


The biggest plugin in space...