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
CaretEdgesBuilderclass for generating caret edges from a set of input parameters - Updated
getCaretEdges()method inShapingResultto base onCaretEdgesBuilder - Converted
TextRunfrom abstract class to an interface - Introduced
AbstractTextRunclass for providing helper implementation of some methods - Introduced
TextRunDrawinginterface for separating drawing logic from aTextRunimplementation - Introduced
DefaultTextRunDrawingclass for reusing drawing logic in aTextRunimplementation - Updated
IntrinsicRunclass to base onAbstractTextRun - Removed text drawing support from
IntrinsicRun - Put
ReplacementRunrelated implementation in its own class - Introduced
CaretEdgesclass inIntrinsicRunSliceto transform the edges of parent run - Updated
draw()method inIntrinsicRunSliceto base onDefaultTextRunDrawing - Introduced
JustifiedRunclass to transform an existing text run into a justified one - Added justification support in
LineResolverandTextContainer - Simplified text frame resolving implementation in
FrameResolver