Skip to content

@react-pdf/textkit@7.1.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 13:56
3d0e2da

Minor Changes

  • #3268 90340c45026f1d9c6eeb9666d139b6dbe5d3fa4e Thanks @carlobeltrame! - Hyphenation callbacks can now decide, per split point, whether a hyphen is added when a line breaks there. Return { string, hyphen: null } parts instead of strings to break without a hyphen; strings and parts can be mixed. Plain string arrays keep working as before.

    Chinese and Japanese text now breaks between ideographs by default, without hyphens. Breaks without a hyphen now cost the same as breaking at a space and are no longer blocked by hyphenationPenalty. Parts ending in - no longer get a second hyphen, and the built-in hyphenation can break after dashes in compound words.

Patch Changes