Debian Codegraph @

texmf-dist/doc/pdftex/tests/38-interword-space-at-font-switch/changefontspace.tex

raw
1 % Public domain. From Ulrike:
2 % https://tug.org/pipermail/pdftex/2024-July/009424.html
3 % Original problem, that spaces are lost at font switches.
4
5 \pdfcompresslevel0
6 \pdfobjcompresslevel0
7 \font\test=cmss10
8 \pdfinterwordspaceon
9
10 text text {\test cmss cmss} text text
11
12 \end
13
14 % there is a space char between "text text" and "cmss cmss":
15 %
16 % [(text)]TJ/F51 9.9626 Tf( )Tj/F1 9.9626 Tf 20.756 0 Td [(text)]
17 % [(cmss)]TJ/F51 9.9626 Tf( )Tj/F20 9.9626 Tf 23.302 0 Td [(cmss)]
18 %
19 % But nothing between "text cmss" and "cmss text"
20 %
21 % [(text)]TJ/F20 9.9626 Tf 20.755 0 Td [(cmss)]
22 % [(cmss)]TJ/F1 9.9626 Tf 23.301 0 Td [(text)]