CTTypesetterMBS shared methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

Back to CTTypesetterMBS class.

CTTypesetterMBS.Available as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Whether this class is available.

Returns true in OS X v10.5 and later.

CTTypesetterMBS.CreateWithAttributedString(s as CFAttributedStringMBS) as CTTypesetterMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates an immutable typesetter object using an attributed string.

s: The attributed string to typeset. This parameter must be filled in with a valid CFAttributedString object.

Returns a reference to a CTTypesetter object if the call was successful; otherwise, nil.

The resultant typesetter can be used to create lines, perform line breaking, and do other contextual analysis based on the characters in the string.

Available in OS X v10.5 and later.

See also:

CTTypesetterMBS.CreateWithAttributedString(s as CFAttributedStringMBS, options as dictionary) as CTTypesetterMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates an immutable typesetter object using an attributed string and a dictionary of options.

s: The attributed string to typeset. This parameter must be filled in with a valid CFAttributedString object.
options: A dictionary of typesetter options, or nil if there are none.

Returns a reference to a CTTypesetter object if the call was successful; otherwise, nil.

The resultant typesetter can be used to create lines, perform line breaking, and do other contextual analysis based on the characters in the string.
Available in OS X v10.5 and later.

See also:

CTTypesetterMBS.kCTTypesetterOptionDisableBidiProcessing as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants to control aspects of the typesetter’s bidirectional text processing.

Disables bidirectional processing. Value must be a CFBoolean object. Default value is false. Normally, typesetting applies the Unicode Bidirectional Algorithm as described in Unicode Standard Annex #9. If a typesetter is created with this option set to true, no directional reordering is performed, and any directional control characters are ignored.
Available in OS X v10.5 and later.
Deprecated in OS X v10.8.

CTTypesetterMBS.kCTTypesetterOptionForcedEmbeddingLevel as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants to control aspects of the typesetter’s bidirectional text processing.

Specifies the embedding level. Value must be a CFNumberRef object. Default is unset. Normally, typesetting applies the Unicode Bidirectional Algorithm as described in Unicode Standard Annex #9. If present, this option specifies the embedding level, and any directional control characters are ignored.
Available in OS X v10.5 and later.

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


💬 Ask a question or report a problem