Platforms to show: All Mac Windows Linux Cross-Platform

Back to CATextLayerMBS class.

CATextLayerMBS.alignmentMode as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreAnimation MBS MacCG Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Describes how individual lines of text are aligned within the layer bounds.

The possible options are `natural', `left', `right', `center' and `justified'. Defaults to `natural'.
(Read and Write property)

CATextLayerMBS.allowsFontSubpixelQuantization as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreAnimation MBS MacCG Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Sets allowsFontSubpixelQuantization parameter of CGContextMBS passed to the drawInContext method.

Defaults to false.
(Read and Write property)

CATextLayerMBS.font as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreAnimation MBS MacCG Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes All
The font to use.

May be either a CTFontMBS, NSFontMBS, CGFontMBS, or a string naming the font.
Defaults to the Helvetica font. Only used when the `string' property is not an NSAttributedStringMBS object.
(Read and Write property)

CATextLayerMBS.fontSize as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreAnimation MBS MacCG Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes All
The font size.

Defaults to 36. Only used when the `string' property is not an NSAttributedStringMBS. Animatable (Mac OS X 10.6 and later.)
(Read and Write property)

CATextLayerMBS.foregroundColor as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreAnimation MBS MacCG Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes All
The color object used to draw the text.

Defaults to opaque white.
Only used when the `string' property is not an NSAttributedStringMBS object.
Animatable (Mac OS X 10.6 and later.)
(Read and Write property)

Some examples using this property:

CATextLayerMBS.String as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreAnimation MBS MacCG Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes All
The text to be rendered, should be either a string or an NSAttributedString.

Defaults to nil.
(Read and Write property)

CATextLayerMBS.truncationMode as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreAnimation MBS MacCG Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Describes how the string is truncated to fit within the layer bounds.

The possible options are `none', `start', `middle' and `end'. Defaults to `none'.
(Read and Write property)

CATextLayerMBS.Wrapped as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreAnimation MBS MacCG Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes All
When true the string is wrapped to fit within the layer bounds.

Defaults to false.
(Read and Write property)

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


The biggest plugin in space...