dvipdfmx 和 dvips 在 DVI 模式下无法使用 lualatex 正确扩展字体

dvipdfmx 和 dvips 在 DVI 模式下无法使用 lualatex 正确扩展字体

dvilualatex 和 microtype 应该支持扩展,即使在 DVI 模式下也是如此。而且在生成 DVI 文件时它确实似乎可以工作。但生成的文件实际上并不包含扩展字体:字符的位置好像被扩展了,但实际上并没有以任何方式拉伸。在正常情况下,扩展很小,因此除非您仔细观察,否则不会注意到这一点。但使用具有一些更极端设置的文档时,问题就变得明显了。

文件:

\documentclass[12pt]{article}
\usepackage[utf8]{luainputenc}\usepackage[OT1]{fontenc}
\renewcommand\rmdefault{cmr}\renewcommand\sfdefault{cmss}\renewcommand\ttdefault{cmtt}
\usepackage[main=english]{babel}
\usepackage[expansion=alltext,protrusion,babel,shrink=400,stretch=400,step=80]{microtype}
\usepackage{multicol}
\begin{document}
\begin{multicols*}{2}
The North Wind and the Sun were disputing which was the stronger, when a traveler came along wrapped in a warm cloak. They agreed that the one who first succeeded in making the traveler take his cloak off should be considered stronger than the other. Then the North Wind blew as hard as he could, but the more he blew the more closely did the traveler fold his cloak around him; and at last the North Wind gave up the attempt. Then the Sun shined out warmly, and immediately the traveler took off his cloak. And so the North Wind was obliged to confess that the Sun was the stronger of the two.
\end{multicols*}
\end{document}

使用 lualatex-dev (PDF 模式) 的结果: 使用 lualatex-dev 输出(PDF 模式)

使用 dvilualatex-dev (DVI 模式) + dvipdfmx (dvips 产生相同结果) 的结果: 使用 dvilualatex-dev (DVI 模式) + dvipdfmx 的结果

因此,你会注意到角色放置就像被拉长了一样,但实际上根本没有被修改。

有没有办法用这种扩展将 DVI 编译为 PDF?否则 lualatex 对它的支持似乎毫无用处。

相关内容