github diegomura/react-pdf @react-pdf/font@4.2.0

latest releases: @react-pdf/stylesheet@6.3.4, @react-pdf/mermaid@6.0.2, @react-pdf/textkit@7.1.0...
3 hours ago

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

Don't miss a new react-pdf release

NewReleases is sending notifications on new releases.