Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

CTFontDescriptorMBS.DisplayName as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreText MBS MacCG Plugin 15.0 Yes No No Yes, macOS only No
Function: The display name.
Example:
dim f as CTFontMBS = CTFontMBS.CreateWithName("Times")
dim d as CTFontDescriptorMBS = f.FontDescriptor
MsgBox d.DisplayName
Notes: (Read only property)

Feedback, Comments & Corrections

CTFontDescriptorMBS.FamilyName as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreText MBS MacCG Plugin 15.0 Yes No No Yes, macOS only No
Function: The family name.
Example:
dim f as CTFontMBS = CTFontMBS.CreateWithName("Times")
dim d as CTFontDescriptorMBS = f.FontDescriptor
MsgBox d.FamilyName
Notes: (Read only property)

Feedback, Comments & Corrections

CTFontDescriptorMBS.File as FolderItem
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreText MBS MacCG Plugin 15.0 Yes No No Yes, macOS only No
Function: The font file.
Example:
dim f as CTFontMBS = CTFontMBS.CreateWithName("Times")
dim d as CTFontDescriptorMBS = f.FontDescriptor
MsgBox d.file.NativePath
Notes: (Read only property)

Feedback, Comments & Corrections

CTFontDescriptorMBS.FontSize as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreText MBS MacCG Plugin 15.0 Yes No No Yes, macOS only No
Function: The font size.
Example:
dim f as CTFontMBS = CTFontMBS.CreateWithName("Times")
dim d as CTFontDescriptorMBS = f.FontDescriptor
MsgBox str(d.FontSize)
Notes:
Can be zero if unknown.
(Read only property)

Feedback, Comments & Corrections

CTFontDescriptorMBS.Name as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreText MBS MacCG Plugin 15.0 Yes No No Yes, macOS only No
Function: The PostScript name.
Example:
dim f as CTFontMBS = CTFontMBS.CreateWithName("Times")
dim d as CTFontDescriptorMBS = f.FontDescriptor
MsgBox d.Name
Notes:
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)

Feedback, Comments & Corrections

CTFontDescriptorMBS.StyleName as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreText MBS MacCG Plugin 15.0 Yes No No Yes, macOS only No
Function: The style name.
Example:
dim f as CTFontMBS = CTFontMBS.CreateWithName("Times")
dim d as CTFontDescriptorMBS = f.FontDescriptor
MsgBox d.StyleName
Notes:
This name represents the designer's description of the font's style.
Can be empty if unknown.
(Read only property)

Feedback, Comments & Corrections

CTFontDescriptorMBS.URL as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreText MBS MacCG Plugin 15.0 Yes No No Yes, macOS only No
Function: The font URL.
Example:
dim f as CTFontMBS = CTFontMBS.CreateWithName("Times")
dim d as CTFontDescriptorMBS = f.FontDescriptor
MsgBox d.URL
Notes: (Read only property)

Feedback, Comments & Corrections

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




Links
MBS Xojo Plugins