Minor Changes
-
#3268
90340c45026f1d9c6eeb9666d139b6dbe5d3fa4eThanks @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
-
#3655
633a0b024cd349121a528a253a92c600b3b37016Thanks @zeitderforschung! - Resolve font weights given as names or numeric strings, so svg text withfont-weight="bold"is bold andfont-weight="700"no longer throws -
Updated dependencies [
90340c45026f1d9c6eeb9666d139b6dbe5d3fa4e]:- @react-pdf/types@2.15.0