pdfTeX 中的值\rpcode
是字体字符的属性,例如,
\rpcode\font 50 = 200
将当前字体中字符 50 的右凸出值设置为 200。阅读 luatex 参考手册第 7 章后,我的理解是,该值随后会显示在该特定字符的字符表中right_protrusion
。但是,事实并非如此,或者我做错了什么,下面是一个最小示例:
\pdfprotrudechars=2
\rpcode\font 50 = 200
\efcode\font 50 = 333
\directlua{
local function FMItable (name,t)
print ("---- looking at table ", name, tostring(t))
for k, v in pairs(t) do
print(" ", k,"=", tostring(v))
end
print("----------------")
end
FMItable("char 50",font.fonts[font.current()].characters[50])
}
\bye
如果通过 luatex 运行,则会生成
luatex rp-test.tex
This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/W32TeX) (rev 4971)
restricted \write18 enabled.
(./rp-test.tex---- looking at table char 50 table: 02FB5E10
height = 422343
used = false
width = 327681
bot_accent = 0
italic = 0
expansion_factor = 333
depth = 0
top_accent = 0
----------------
)
No pages of output.
Transcript written on rp-test.log.
您可以看到已更改\efcode
,因此我获取了正确的字符表,但没有获取突起的索引。知道我做错了什么吗?
答案1
这似乎在当前的 0.80 版本中已修复
This is LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238)
restricted \write18 enabled.
(./gg384.tex---- looking at table char 50 table: 0x60106f270
depth = 0
used = false
width = 327681
expansion_factor = 333
right_protruding = 200
height = 422343
----------------
)
No pages of output.
显示
right_protruding = 200
据报道。