Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@lachie-pdf/textkit

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lachie-pdf/textkit

An advanced text layout framework

latest
Source
npmnpm
Version
4.1.0
Version published
Maintainers
1
Created
Source

@lachie-pdf/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

FAQs

Package last updated on 26 Oct 2022

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