Skip to content

v2.8

Compare
Choose a tag to compare
@mta452 mta452 released this 15 Mar 05:28
· 182 commits to master since this release

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 in ShapingResult to base on CaretEdgesBuilder
  • 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 a TextRun implementation
  • Introduced DefaultTextRunDrawing class for reusing drawing logic in a TextRun implementation
  • Updated IntrinsicRun class to base on AbstractTextRun
  • Removed text drawing support from IntrinsicRun
  • Put ReplacementRun related implementation in its own class
  • Introduced CaretEdges class in IntrinsicRunSlice to transform the edges of parent run
  • Updated draw() method in IntrinsicRunSlice to base on DefaultTextRunDrawing
  • Introduced JustifiedRun class to transform an existing text run into a justified one
  • Added justification support in LineResolver and TextContainer
  • Simplified text frame resolving implementation in FrameResolver