[ 
https://issues.apache.org/jira/browse/PDFBOX-3992?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16239525#comment-16239525
 ] 

Tilman Hausherr commented on PDFBOX-3992:
-----------------------------------------

Please add a javadoc, attach it as patch against the trunk, and please provide 
an example that uses the liberation sans font (that is in the PDFBox resources) 
so that people can see how to use that feature.

> Implement show text with positioning operator (TJ)
> --------------------------------------------------
>
>                 Key: PDFBOX-3992
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3992
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel
>            Reporter: Dan Fickling
>
> Why: The TJ operator is required to properly implement text justification in 
> unicode fonts. The word spacing operator (Tw) is not sufficient because of 
> note[1] from the PDF specification.
> Github user backslash47 has provided a basic implementation if that is of any 
> help:
> https://github.com/backslash47/pdfbox/commit/3c528295b16445e58dc9fe895f78384221452be2
> Thanks,
> Daniel.
> [1] Note: Word spacing is 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 does not apply to occurrences 
> of the byte value 32 in multiple-byte codes. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to