Skip to content

RichTextKit 0.7.176

Latest

Choose a tag to compare

@toptensoftware toptensoftware released this 03 Dec 01:45
· 1 commit to main since this release

Fixes:

  • Mixed-direction text with nested bidi levels was drawn in the wrong order,
    e.g. a number after right-to-left text in a left-to-right paragraph
  • Text with a Style.TextDirection override could be resolved in the wrong
    direction, e.g. a right-to-left override in a left-to-right paragraph
  • Trailing whitespace inside a Style.TextDirection override could be counted
    in the line width, affecting right and center alignment
  • A Style.TextDirection override in the paragraph's own direction had no
    effect between opposite-direction text, e.g. a left-to-right override
    between Hebrew words in a left-to-right paragraph
  • Text with a Style.TextDirection could still be ordered wrongly in many
    mixed-direction cases, e.g. when part of it had a different style

Changes:

  • Text with a Style.TextDirection is now laid out as a bidi isolate, like
    in a browser, and is shaped on its own
  • Each paragraph of a TextBlock is now ordered on its own (UAX #9). This can
    change the layout of existing multi-line text
  • Breaking: removed BidiData.SaveTypes, RestoreTypes and Length;
    Bidi.ResolveEmbeddingLevel is now static

Full changelog: https://github.com/toptensoftware/RichTextKit/blob/main/CHANGELOG.md