latex3 / tagpdf

Tagging support code for LaTeX
60 stars 7 forks source link

interword space doesn't work at font changes #11

Closed u-fischer closed 5 years ago

u-fischer commented 5 years ago
\documentclass{article}
\usepackage{tagpdf}
\tagpdfsetup{activate-mc,uncompress,interwordspace=true}
\begin{document}
abc \texttt{abc} abc

abc abc abc 
\end{document}

gives

BT
/F15 9.96264 Tf 1 0 0 1 148.712 707.125 Tm [<001C0023>-28<002B>]TJ
/F26 9.96264 Tf 1 0 0 1 167.253 707.125 Tm [<001C0023002B>]TJ
/F15 9.96264 Tf 1 0 0 1 186.262 707.125 Tm [<001C0023>-28<002B>]TJ
1 0 0 1 148.712 695.17 Tm [<001C0023>-28<002B0067001C0023>-28<002B0067001C0023>-28<002B>]TJ
1 0 0 1 303.133 139.255 Tm [<0052>]TJ
ET
u-fischer commented 5 years ago

font changes inserts a kern of subtype 0 so this need to be handled too ...