Platforms to show: All Mac Windows Linux Cross-Platform
CTFramesetterMBS class
Super class: CFObjectMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | CoreText | MBS MacCG Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The framesetter takes an attributed string object and a shape descriptor object and calls into the typesetter to create line objects that fill that shape. The output is a frame object containing an array of lines. The frame can then draw itself directly into the current graphic context.
Subclass of the CFObjectMBS class.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- property TypeSetter as CTTypesetterMBS
- 3 methods
- method Constructor Private
- method CreateFrame(location as Integer, length as Integer, path as CGPathMBS, frameAttributes as dictionary = nil) as CTFrameMBS
- method SuggestFrameSizeWithConstraints(location as Integer, length as Integer, frameAttributes as dictionary, constraints as CGSizeMBS, byref fitRangeLocation as Integer, byref fitRangeLength as Integer) as CGSizeMBS
- 2 shared methods
- shared method Available as boolean
- shared method CreateWithAttributedString(s as CFAttributedStringMBS) as CTFramesetterMBS
Super class CFObjectMBS
- 5 properties
- property Handle as Integer
- property Hash as Integer
- property Lasterror as Integer
- property Type as Integer
- property TypeDescription as String
- 9 methods
- method close
- method DeepCopy as CFObjectMBS
- method EncodedData as MemoryBlock
- method Equal(o as CFObjectMBS) as boolean
- method ReleaseObject
- method RetainCount as Integer
- method RetainObject
- method XML as CFBinaryDataMBS
- method XMLdata as String
- shared method NewCFObject(handle as Integer) as CFObjectMBS
This class has no sub classes.
Some examples using this class:
- /MacCG/Attributed String print
- /MacCG/CoreText/CoreText Dynamic Text Height
- /MacCG/CoreText/CoreText Test
Blog Entries
The items on this page are in the following plugins: MBS MacCF Plugin, MBS MacCG Plugin.