From version 15.1.0 upwards the word channel supports the usage of OpenType features of fonts. Such OpenType Features include the proportional or tabular number spacing.
Enable OpenType Features support of the word channel
In the word channel options add the option:
"pdf.useOpenTypeFeatures": true
This will enable the usage of an external shaper (learn more: https://docs.aspose.com/words/java/enable-opentype-features/ )
The external shaper is required to parse font files which is expensive. Caching is enabled by default
See OpenType Features of a font
To find out what features are available for your font, upload your font to https://fontdrop.info/ and compare its output with the documentation of the OpenType Features.
It is not guaranteed that all OpenType Features are supported by the word channel
Apply a feature: Word Template
An example on how to enable the proportional number spacing feature in the word template:
Open your template and mark the corresponding locations
Click on the advanced font settings
Under the tab Advanced enable switch the Number Spacing option to Tabluar
0 Comments