The PDF 32000 spec discusses the limited applicability of the SetWordspace (Tw) operator:
"Word spacing shall be applied to every occurrence of the single-byte character code 32 in a string when using a simple font or a composite font that defines code 32 as a single-byte code. It shall not apply to occurrences of the byte value 32 in multiple-byte codes"
In short, the Tw operator wont work on multibyte encodings, such as Identity-H.
The flow on effect is that text block justification. is breaking for Identity-H encoded fonts loaded by PDF::Font::Loader. In general, we should warn if WordSpacing has been set, but will be ineffective.
This is at least, easily detected.
Text::Block should warn and explicitly ignore WordSpacing, when it wont work with a given font
Our current internal use of WordSpacing for justified text needs to be fixed. Most likely change it
to use ShowSpaceText (TJ).
The PDF 32000 spec discusses the limited applicability of the SetWordspace (Tw) operator:
"Word spacing shall be applied to every occurrence of the single-byte character code 32 in a string when using a simple font or a composite font that defines code 32 as a single-byte code. It shall not apply to occurrences of the byte value 32 in multiple-byte codes"
In short, the Tw operator wont work on multibyte encodings, such as Identity-H.
The flow on effect is that text block justification. is breaking for Identity-H encoded fonts loaded by PDF::Font::Loader. In general, we should warn if WordSpacing has been set, but will be ineffective.
This is at least, easily detected.