khaledhosny / luaotfload

Moved to https://github.com/latex3/luaotfload
23 stars 15 forks source link

Type1 Fonts not working #47

Open pgundlach opened 12 years ago

pgundlach commented 12 years ago

luaotfload is seemingly unable to load type1 fonts

\input luaotfload.sty
\font\foo={file:fxlr}
\foo
bla bla 
\bye

with all possible combinations with path, with extension, local directory, ... fail:

! Font \foo=file:fxlr not loadable: metric data not found or bad.
mpg commented 12 years ago

Yep, luaotfload is designed to load Opentype fonts (hence Truetype fonts) but that's all. The main code for font loading is written by Hans, and I doubt he's interested in loading Type 1 fonts.

However, Type 1 fonts can still be loaded the old way if they have matching tfm files, but then the encoding must be handled the old way too.

pgundlach commented 12 years ago

There is no technical reason whatsoever that a font loader for LuaTeX should not be able to handle Type1 in the same way as it supports OpenType (minus the features,..., of course). There is no need to use the legacy 8-bit system anymore. IIRC even ConTeXt handles the type1 fonts the same way as OpenType fonts. So I don't see why this is an issue for the luaotf-loader.

I might be wrong of course and even ConTeXt doesn't handle type1 fonts that way. But still this is one of the most annoying limitation for me that luaotfload doesn't handle type1 fonts transparently :)