Skip to content

v1.7.0

Choose a tag to compare

@dragonofmercy dragonofmercy released this 09 Jun 07:35
· 162 commits to main since this release

Added

  • Right-to-left text (Hebrew) - Unicode bidirectional algorithm reordering on cells and tables, with setBaseDirection(), a per-cell() direction: argument, Cell::direction(), and the Direction enum. RTL right-aligns by default; byte-identical output when no RTL text is present.
  • Arabic shaping - contextual presentation forms (isolated/initial/medial/final) and mandatory lam-alef ligatures on cells and tables, in pure PHP (requires a font whose cmap carries the Arabic presentation forms).
  • RTL Markdown - bidi reordering and Arabic shaping in Page::markdown() and cell(markdown: true), with right-aligned RTL blocks and mirrored list markers / blockquote bars.
  • Inter-document TTF parse cache - parsed custom fonts are memoized in-process and shared across every Document; transparent and byte-identical, with ParsedTtfCache::clear() to reset it in long-running workers.