have you configured the variable

OVFFONTS

tfm/ofm nv/ovf both use the o variables

After some research, I managed to find a solution to my problems with the two attached file.

If I understand correctly:
- when luatex sees the asked font omarab.ofm, it looks for omarab.ofm.ovp [1] and doesn't find it - with the toolchain aleph -> dvips, dvips looks for omarab.ovp and finds it [2]

It seems a bit weird to try to find omarab.ofm with type ovp, as:

$ kpsewhich -format ovp omarab.ofm
$ kpsewhich -format ovp omarab
/usr/share/texmf-texlive/fonts/ovp/public/omega/omarab.ovp

Now, this could be alright and it could be documented (I'm thinking of section 2.7.12 of the manual) that one should not call an ofm font with its extension.

But! there is another problem which I think is related: if I use ConTeXt's fonts*.lua files of any version, I have to register the find_vf_file callback (with the same function as in my file) otherwise ofm files don't work, even when called without the ofm extension... So it might be related with something in LuaTeX, not ConTeXt, as ConTeXt just calls font.read_tfm and returns...

What do you think?

Thank you!
--
Elie

[1]: see the output of
luatex --kpathsea-debug=-1 tfmofm.tex 2>&1 |grep ovf |grep omarab
if you remove the callback

[2]: see the output of
dvips -d 3650 tfmofm.dvi 2>&1 |grep ovf |grep omarab
if you remove the first line of the .tex file
function find_vf(name)
    texio.write_nl(name)
    local fname = kpse.find_file(name, 'ovf')
    if not fname then
      fname = kpse.find_file(name:gsub("%.[%a%d]+$",""), 'ovf')
    end
    return fname
end

callback.register("find_vf_file", find_vf, "luaotfload.find_vf")

Attachment: tfmofm.tex
Description: TeX document

Reply via email to