Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

CTFontMBS.Ascent as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreText MBS MacCG Plugin 14.2 Yes No No Yes, macOS only No
Function: Returns the scaled font-ascent metric of the given font.
Notes:
The font-ascent metric scaled according to the point size and matrix of the font reference.
(Read only property)

Feedback, Comments & Corrections

CTFontMBS.BoundingBox as CGRectMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreText MBS MacCG Plugin 14.2 Yes No No Yes, macOS only No
Function: Returns the scaled bounding box of the given font.
Notes:
The design bounding box of the font, which is the rectangle defined by xMin, yMin, xMax, and yMax values for the font. Returns CGRectNull on error.
(Read only property)

Feedback, Comments & Corrections

CTFontMBS.CapHeight as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreText MBS MacCG Plugin 14.2 Yes No No Yes, macOS only No
Function: Returns the cap-height metric of the given font.
Notes:
The font cap-height metric scaled according to the point size and matrix of the font reference.
(Read only property)

Feedback, Comments & Corrections

CTFontMBS.CharacterSet as Variant
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreText MBS MacCG Plugin 14.2 Yes No No Yes, macOS only No
Function: Returns the Unicode character set of the font.
Notes:
Value is a CFCharacterSetMBS object.
The returned character set covers the nominal referenced by the font's Unicode 'cmap’ table.
(Read only property)

Feedback, Comments & Corrections

CTFontMBS.Descent as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreText MBS MacCG Plugin 14.2 Yes No No Yes, macOS only No
Function: Returns the scaled font-descent metric of the given font.
Notes:
The font-descent metric scaled according to the point size and matrix of the font reference.
(Read only property)

Feedback, Comments & Corrections

CTFontMBS.DisplayName as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreText MBS MacCG Plugin 14.2 Yes No No Yes, macOS only No
Function: Returns the display name of the given font.
Example:
dim c as CTFontMBS = CTFontMBS.CreateWithName("Times", 12)
MsgBox c.DisplayName
Notes: (Read only property)

Feedback, Comments & Corrections

CTFontMBS.FamilyName as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreText MBS MacCG Plugin 14.2 Yes No No Yes, macOS only No
Function: Returns the family name of the given font.
Example:
dim c as CTFontMBS = CTFontMBS.CreateWithName("Times", 12)
MsgBox c.FamilyName
Notes: (Read only property)

Feedback, Comments & Corrections

CTFontMBS.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")
MsgBox f.file.NativePath
Notes: (Read only property)

Feedback, Comments & Corrections

CTFontMBS.FontDescriptor as CTFontDescriptorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreText MBS MacCG Plugin 14.2 Yes No No Yes, macOS only No
Function: Returns the normalized font descriptor for the given font reference.
Notes:
A normalized font descriptor for a font containing enough information to recreate this font at a later time.
(Read only property)

Feedback, Comments & Corrections

CTFontMBS.FullName as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreText MBS MacCG Plugin 14.2 Yes No No Yes, macOS only No
Function: Returns the full name of the given font.
Example:
dim c as CTFontMBS = CTFontMBS.CreateWithName("Times", 12)
MsgBox c.FullName
Notes: (Read only property)

Feedback, Comments & Corrections

CTFontMBS.GlyphCount as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreText MBS MacCG Plugin 14.2 Yes No No Yes, macOS only No
Function: Returns the number of glyphs of the given font.
Notes: (Read only property)

Feedback, Comments & Corrections

CTFontMBS.Leading as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreText MBS MacCG Plugin 14.2 Yes No No Yes, macOS only No
Function: Returns the scaled font-leading metric of the given font.
Notes:
The font-leading metric scaled according to the point size and matrix of the font reference.
(Read only property)

Feedback, Comments & Corrections

CTFontMBS.Matrix as CGAffineTransformMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreText MBS MacCG Plugin 14.2 Yes No No Yes, macOS only No
Function: Returns the transformation matrix of the given font.
Notes:
The transformation matrix for the given font reference. This is the matrix that was provided when the font was created.
(Read only property)

Feedback, Comments & Corrections

CTFontMBS.PostScriptName as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreText MBS MacCG Plugin 14.2 Yes No No Yes, macOS only No
Function: Returns the PostScript name of the given font.
Example:
dim c as CTFontMBS = CTFontMBS.CreateWithName("Times", 12)
MsgBox c.PostScriptName
Notes: (Read only property)

Feedback, Comments & Corrections

CTFontMBS.Size as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreText MBS MacCG Plugin 14.2 Yes No No Yes, macOS only No
Function: Returns the point size of the given font.
Notes:
This is the point size provided when the font was created.
(Read only property)

Feedback, Comments & Corrections

CTFontMBS.SlantAngle as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreText MBS MacCG Plugin 14.2 Yes No No Yes, macOS only No
Function: Returns the slant angle of the given font.
Notes:
The transformed slant angle of the font. This is equivalent to the italic or caret angle with any skew from the transformation matrix applied.
(Read only property)

Feedback, Comments & Corrections

CTFontMBS.StringEncoding as UInt32
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreText MBS MacCG Plugin 14.2 Yes No No Yes, macOS only No
Function: Returns the best string encoding for legacy format support.
Notes:
The best string encoding for the font.
(Read only property)

Feedback, Comments & Corrections

CTFontMBS.SymbolicTraits as UInt32
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreText MBS MacCG Plugin 14.2 Yes No No Yes, macOS only No
Function: Returns the symbolic traits of the given font.
Notes:
The symbolic traits of the font. This is equivalent to the kCTFontSymbolicTrait value of the traits dictionary.
(Read only property)

Feedback, Comments & Corrections

CTFontMBS.Traits as Dictionary
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreText MBS MacCG Plugin 14.2 Yes No No Yes, macOS only No
Function: Returns the traits dictionary of the given font.
Notes:
A retained reference to the font traits dictionary. Individual traits can be accessed with the trait key constants.
(Read only property)

Feedback, Comments & Corrections

CTFontMBS.UnderlinePosition as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreText MBS MacCG Plugin 14.2 Yes No No Yes, macOS only No
Function: Returns the scaled underline position of the given font.
Notes:
The font underline-position metric scaled according to the point size and matrix of the font reference.
(Read only property)

Feedback, Comments & Corrections

CTFontMBS.UnderlineThickness as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreText MBS MacCG Plugin 14.2 Yes No No Yes, macOS only No
Function: Returns the scaled underline-thickness metric of the given font.
Notes:
The font underline-thickness metric scaled according to the point size and matrix of the font reference.
(Read only property)

Feedback, Comments & Corrections

CTFontMBS.UnitsPerEm as UInt64
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreText MBS MacCG Plugin 14.2 Yes No No Yes, macOS only No
Function: Returns the units-per-em metric of the given font.
Notes: (Read only property)

Feedback, Comments & Corrections

CTFontMBS.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")
MsgBox f.URL
Notes: (Read only property)

Feedback, Comments & Corrections

CTFontMBS.Variation as Dictionary
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreText MBS MacCG Plugin 14.2 Yes No No Yes, macOS only No
Function: Returns a variation dictionary from the font reference.
Notes:
The keys for each variation correspond to the variation identifier obtained via kCTFontVariationAxisIdentifierKey, which represents the four-character axis code as a number.
(Read only property)

Feedback, Comments & Corrections

CTFontMBS.XHeight as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreText MBS MacCG Plugin 14.2 Yes No No Yes, macOS only No
Function: Returns the x-height metric of the given font.
Notes:
The font x-height metric scaled according to the point size and matrix of the font reference.
(Read only property)

Feedback, Comments & Corrections

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




Links
MBS Xojo PDF Plugins