React-pdf: Custom Hyphenation rule

Created on 21 May 2020  路  3Comments  路  Source: diegomura/react-pdf

Hi its possible to implement custom hyphen rules?

new feature

Most helpful comment

Similar question: is hyphenationCallback on Text component deprecated? I can't seem to find docs on this and it seems that the repo does not implement this value. My use case is disabling hyphenation on an individual Text component.

https://github.com/diegomura/react-pdf/search?q=hyphenation

All 3 comments

Similar question: is hyphenationCallback on Text component deprecated? I can't seem to find docs on this and it seems that the repo does not implement this value. My use case is disabling hyphenation on an individual Text component.

https://github.com/diegomura/react-pdf/search?q=hyphenation

@dchan-unityrail I think the docs are wrong, the actual prop that you can influence on the Text component is hyphenationPenalty which you can set to a sufficiently high number to disable hyphenation in most cases. But you have to guess the correct value, I think 馃檭

Was this page helpful?
0 / 5 - 0 ratings