forms.md
to generate documentation filesdash(...)
is passed invalid lengthsSwitches the font engine from an internal one to fontkit, an advanced text shaping engine I've been working on for a while. For PDFKit, this means the following features and improvements:
PDFKit's API remains almost exactly the same, the changes are entirely under the covers. The only addition is a new features
option to the doc.text
method, which can be used to apply custom OpenType features to the text. If given, it should be an array of OpenType feature tags. Most of the time, this is unnecessary as the script shaper will automatically apply required features.
This is a fairly minor release. It includes the following fixes and improvements:
A precompiled version is attached to the release.
This is a big release. I'd like to thank the contributors listed below for making this possible!
indent
with the continued
option for text. Thanks @ef4. See #300.characterSpacing
option. Thanks again @ef4. See #301.continued
. @ef4 deserves a medal. See #308.valign
option. It works like the align
option but vertically inside the fit
area.ArrayBuffer
s and Uint8Array
s for loading fonts in the browser.Thanks to @ryanwersal for these contributions!
trimRight
method, which doesn't exist in some browsers (cough IE cough).font
methodI'm including a prebuilt version of PDFKit here, along with a source map. You can use these if you don't want to use browserify to build your project.