Skip to content

Scaling bug in current xetex.def #13

Open
@nolda

Description

@nolda

Using \scalebox with XeLaTeX and current xetex.def may misalign content.

Consider the following MWE:

\documentclass{article}
\usepackage{graphics}
\usepackage{pstricks,pst-node}
\pagestyle{empty}
\newcommand{\sample}{%
\psset{nodesep=1pt}
\Rnode{A}{left} \hskip4em \Rnode{B}{right}%
\ncline{|-|}{A}{B}\naput{center}%
}

\begin{document}
\sample
\vskip\baselineskip
\scalebox{0.8}{\sample}
\end{document}

In the second, scaled sample, the "center" label is misaligned if the MWE is compiled with XeLaTeX and v. 5.0h of xetex.def (cf. the attached mwe_xetex-def_5.0h.pdf). With v. 4.10 of xetex.def (commit edf0eb48e2e70f7dc1147e79e28a7dceeda605d0) or with PDFTeX, however, it compiles correctly (cf. mwe_xetex-def_4.10.pdf and mwe_pdftex-def.pdf, respectively).
mwe_xetex-def_5.0h.pdf
mwe_xetex-def_4.10.pdf
mwe_pdftex-def.pdf

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions