Platforms to show: All Mac Windows Linux Cross-Platform
Back to CTRunMBS class.
CTRunMBS.Advances as CGSizeMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreText | MBS MacCG Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Changed in v22.2 to use copy function to get array instead Ptr function, if no pointer is available.
CTRunMBS.Constructor Private
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreText | MBS MacCG Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CTRunMBS.Draw(context as CGContextMBS, location as Integer, length as Integer = 0)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreText | MBS MacCG Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
context: The context into which to draw the run.
range: The portion of the run to draw. If the length of the range is set to 0, then the draw operation continues from the start index of the range to the end of the run.
This is a convenience call, because the run could be drawn by accessing the glyphs. This call can leave the graphics context in any state and does not flush the context after the draw operation.
Available in OS X v10.5 and later.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreText | MBS MacCG Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Changed in v22.2 to use copy function to get array instead Ptr function, if no pointer is available.
CTRunMBS.ImageBounds(context as CGContextMBS, location as Integer, length as Integer) as CGRectMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreText | MBS MacCG Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
context: The context for the image bounds being calculated. This is required because the context could have settings in it that would cause changes in the image bounds.
range: The portion of the run to measure. If the length of the range is set to 0, then the measure operation continues from the start index of the range to the end of the run.
Returns a rectangle that tightly encloses the paths of the run's glyphs, or, if run, context, or range is invalid, CGRectNull.
Available in OS X v10.5 and later.
CTRunMBS.Positions as CGPointMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreText | MBS MacCG Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Changed in v22.2 to use copy function to get array instead Ptr function, if no pointer is available.
CTRunMBS.StringIndices as Integer()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreText | MBS MacCG Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The indices are the character indices that originally spawned the glyphs that make up the run. They can be used to map the glyphs in the run back to the characters in the backing store.
Changed in v22.2 to use copy function to get array instead Ptr function, if no pointer is available.
CTRunMBS.TypographicBounds(location as Integer, length as Integer, byref ascent as Double, byref descent as Double, byref leading as Double) as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreText | MBS MacCG Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
range: The portion of the run to measure. If the length of the range is set to 0, then the measure operation continues from the range's start index to the end of the run.
ascent: On output, the ascent of the run.
descent: On output, the descent of the run.
leading: On output, the leading of the run.
Returns the typographic width of the run, or if run or range is invalid, 0.
Available in OS X v10.5 and later.
The items on this page are in the following plugins: MBS MacCG Plugin.