Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nutshelllabs/textkit

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nutshelllabs/textkit

An advanced text layout framework

  • 4.7.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
144
decreased by-17.24%
Maintainers
2
Weekly downloads
 
Created
Source

@nutshelllabs/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

  1. split into paragraphs
  2. get bidi runs and paragraph direction
  3. font substitution - map to resolved font runs
  4. script itemization
  5. font shaping - text to glyphs
  6. line breaking
  7. bidi reordering
  8. justification
  9. get a list of rectangles by intersecting path, line, and exclusion paths
  10. perform line breaking to get acceptable break points for each fragment
  11. ellipsize line if necessary
  12. bidi reordering
  13. justification

Performance

This package was not originally optimized for speed in regards to batch rendering of PDFs. Changes are in the works to speed up this use-case.

FAQs

Package last updated on 30 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc