Platforms to show: All Mac Windows Linux Cross-Platform

Back to CTFontMBS class.

CTFontMBS.Ascent as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the scaled font-ascent metric of the given font.

The font-ascent metric scaled according to the point size and matrix of the font reference.
(Read only property)

CTFontMBS.BoundingBox as CGRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the scaled bounding box of the given font.

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)

CTFontMBS.CapHeight as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the cap-height metric of the given font.

The font cap-height metric scaled according to the point size and matrix of the font reference.
(Read only property)

CTFontMBS.CharacterSet as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the Unicode character set of the font.

Value is a CFCharacterSetMBS object.
The returned character set covers the nominal referenced by the font's Unicode 'cmap’ table.
(Read only property)

Some examples using this property:

CTFontMBS.Descent as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the scaled font-descent metric of the given font.

The font-descent metric scaled according to the point size and matrix of the font reference.
(Read only property)

CTFontMBS.DisplayName as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the display name of the given font.
Example
dim c as CTFontMBS = CTFontMBS.CreateWithName("Times", 12)
MsgBox c.DisplayName

(Read only property)

CTFontMBS.FamilyName as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the family name of the given font.
Example
dim c as CTFontMBS = CTFontMBS.CreateWithName("Times", 12)
MsgBox c.FamilyName

(Read only property)

CTFontMBS.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")
MsgBox f.file.NativePath

(Read only property)

CTFontMBS.FontDescriptor as CTFontDescriptorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the normalized font descriptor for the given font reference.

A normalized font descriptor for a font containing enough information to recreate this font at a later time.
(Read only property)

CTFontMBS.FullName as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the full name of the given font.
Example
dim c as CTFontMBS = CTFontMBS.CreateWithName("Times", 12)
MsgBox c.FullName

(Read only property)

CTFontMBS.GlyphCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the number of glyphs of the given font.

(Read only property)

CTFontMBS.Leading as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the scaled font-leading metric of the given font.

The font-leading metric scaled according to the point size and matrix of the font reference.
(Read only property)

CTFontMBS.Matrix as CGAffineTransformMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the transformation matrix of the given font.

The transformation matrix for the given font reference. This is the matrix that was provided when the font was created.
(Read only property)

CTFontMBS.PostScriptName as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the PostScript name of the given font.
Example
dim c as CTFontMBS = CTFontMBS.CreateWithName("Times", 12)
MsgBox c.PostScriptName

(Read only property)

CTFontMBS.Size as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the point size of the given font.

This is the point size provided when the font was created.
(Read only property)

CTFontMBS.SlantAngle as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the slant angle of the given font.

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)

CTFontMBS.StringEncoding as UInt32

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the best string encoding for legacy format support.

The best string encoding for the font.
(Read only property)

CTFontMBS.SymbolicTraits as UInt32

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the symbolic traits of the given font.

The symbolic traits of the font. This is equivalent to the kCTFontSymbolicTrait value of the traits dictionary.
(Read only property)

CTFontMBS.Traits as Dictionary

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the traits dictionary of the given font.

A retained reference to the font traits dictionary. Individual traits can be accessed with the trait key constants.
(Read only property)

CTFontMBS.UnderlinePosition as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the scaled underline position of the given font.

The font underline-position metric scaled according to the point size and matrix of the font reference.
(Read only property)

CTFontMBS.UnderlineThickness as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the scaled underline-thickness metric of the given font.

The font underline-thickness metric scaled according to the point size and matrix of the font reference.
(Read only property)

CTFontMBS.UnitsPerEm as UInt64

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the units-per-em metric of the given font.

(Read only property)

CTFontMBS.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")
MsgBox f.URL

(Read only property)

CTFontMBS.Variation as Dictionary

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a variation dictionary from the font reference.

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)

CTFontMBS.XHeight as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the x-height metric of the given font.

The font x-height metric scaled according to the point size and matrix of the font reference.
(Read only property)

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


The biggest plugin in space...