4.0.0 • Published 2 years ago
@ads.silva/textkit v4.0.0
@ads.silva/textkit
Acknowledges
This project is a fork of textkit by @devongovett and continued under the scope of this project since it has react-pdf specific features. Any recongnition should go to him and the original project mantainers.
Layout process
- split into paragraphs
- get bidi runs and paragraph direction
- font substitution - map to resolved font runs
- script itemization
- font shaping - text to glyphs
- line breaking
- bidi reordering
- justification
- get a list of rectangles by intersecting path, line, and exclusion paths
- perform line breaking to get acceptable break points for each fragment
- ellipsize line if necessary
- bidi reordering
- justification
4.0.0
2 years ago