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
-
#3577
890aba0f7b5c272e80700f9fb89af2274c40ab6fThanks @Louayzouaoui1! - fix: keep the base letterform of decomposed characters (e.g. Arabic letters shaped as base + dot mark) when a run is sliced or measured at their start -
#3454
270f3bd214fe3da2e25e46414846e6ae268f5b71Thanks @to-na! - fix(textkit): preserve variation selector font runs -
Updated dependencies [
90340c45026f1d9c6eeb9666d139b6dbe5d3fa4e,633a0b024cd349121a528a253a92c600b3b37016]:- @react-pdf/font@4.2.0