v2.8
Additions:
- Added seek bar for adjusting justification level in custom text view demo screen
FrameResolver
:
- Justification Support:
setJustificationEnabled(boolean justificationEnabled)
,boolean isJustificationEnabled()
- Justification Level:
setJustificationLevel(float justificationLevel)
,float getJustificationLevel()
Typesetter
:
- Line Justification:
ComposedLine createJustifiedLine(int charStart, int charEnd, float justificationFactor, float justificationWidth)
TTextView
:
- Justification Properties:
justificationEnabled
,justificationLevel
Updates:
- Introduced
CaretEdgesBuilder
class for generating caret edges from a set of input parameters - Updated
getCaretEdges()
method inShapingResult
to base onCaretEdgesBuilder
- Converted
TextRun
from abstract class to an interface - Introduced
AbstractTextRun
class for providing helper implementation of some methods - Introduced
TextRunDrawing
interface for separating drawing logic from aTextRun
implementation - Introduced
DefaultTextRunDrawing
class for reusing drawing logic in aTextRun
implementation - Updated
IntrinsicRun
class to base onAbstractTextRun
- Removed text drawing support from
IntrinsicRun
- Put
ReplacementRun
related implementation in its own class - Introduced
CaretEdges
class inIntrinsicRunSlice
to transform the edges of parent run - Updated
draw()
method inIntrinsicRunSlice
to base onDefaultTextRunDrawing
- Introduced
JustifiedRun
class to transform an existing text run into a justified one - Added justification support in
LineResolver
andTextContainer
- Simplified text frame resolving implementation in
FrameResolver