v1.1
Additions
BidiAlgorithm
:
- Paragraph Boundary:
paragraphBoundary(inCodeUnitRange: Range<Int>) -> Int
- Paragraph Creation:
makeParagraph(codeUnitRange: Range<Int>, direction: BaseDirection) -> BidiParagraph?
makeParagraph(codeUnitRange: Range<Int>, baseLevel: UInt8) -> BidiParagraph?
BidiParagraph
:
- Line Creation:
makeLine(codeUnitRange: Range<Int>) -> BidiLine?
- UTF-16 Range:
var codeUnitRange: Range<Int>
BidiLine
:
- UTF-16 Range:
var codeUnitRange: Range<Int>
BidiRun
:
- UTF-16 Range:
var codeUnitRange: Range<Int>
BidiPair
:
- Character Index:
var characterIndex: String.Index
Typesetter
:
- Line Truncation:
func makeTruncatedLine(characterRange: Range<String.Index>, extent: CGFloat, breakMode: BreakMode, truncationPlace: TruncationPlace, tokenString: String?) -> ComposedLine
func makeTruncatedLine(characterRange: Range<String.Index>, extent: CGFloat, breakMode: BreakMode, truncationPlace: TruncationPlace, tokenLine: ComposedLine) -> ComposedLine
FrameResolver
:
- Truncation Support:
var truncationMode: BreakMode = .line
var truncationPlace: TruncationPlace? = nil
TLabel
:
- Hit Testing:
func indexOfCodeUnit(at position: CGPoint) -> Int?
func indexOfCharacter(at position: CGPoint) -> String.Index?
- Truncation Support:
var truncationMode: BreakMode
var truncationPlace: TruncationPlace?
- Current Frame:
var textFrame: ComposedFrame?
Demo Project:
- Added
LinkableLabel
in demo project - Highlighted links on press in custom label screen
Updates
- Set access specifier of
TLabel
to open