fschutt / printpdf

A fully-featured PDF library for Rust, WASM-ready
https://fschutt.github.io/printpdf/
MIT License
832 stars 98 forks source link

Add support for text shaping #130

Open RagibHasin opened 1 year ago

RagibHasin commented 1 year ago

As I understood the code, printpdf does no text shaping and generates a glyph ID for each code point.

In #73 @fschutt mentioned that, ideally, the shaping engine should be pluggable. Recently, yeslogic/allsorts has emerged as a viable option for text shaping and font substitution in pure Rust, which is already being used in production.

Is that plan still valid? If so, would it be acceptable to switch font subsetting to allsorts along with text shaping?

fschutt commented 1 year ago

Yeah I know about allsorts, but I never got around to migrating to allsorts.