uppercase/lowercase font name #6
Comments
|
@u-fischer I just pushed a patched |
|
It works fine on windows. But I made a testfile latex-font-lower-uppercase-filename.lvt and it fails on travis. As far as I can see |
|
@u-fischer This is expected on non-Windows systems. (Most) Linux filesystems are not case-sensitive, so ignorging the case would make some font inaccessible if their names only differ by case. |
|
@zauguin yes, I know that linux is case-sensitive. But in context all font/file names are normalized to lowercase/without spaces/without hyphen. E.g. in the names.tma I find entries like the following (don't ask why texlive/2017, I have forgotten how I added it to context). So I wonder if it would be sensible behaviour for luaotfload too. (But for now I will remove the case insensitive test, to avoid the travis failure). |
|
Methods for sanitizing the names like this are already implemented for fontnames, they would be quite easy to adapt to filenames. On the other hand I do not think sanitizing the names would break any real life use case, so I would be open to do it anyway if you think it is sensible. |
|
well I don't like the idea to sanitize hyphens or space away, lower/upper case sounds sensible but this is perhaps my windows view. I will ask in the chat. |
|
@zauguin Looks as if case insensitivity is not a bad idea "especially since kpathsea recently changed to do case insensitive searches in other contexts" and "best would be if you could honour the texmf_casefold_search configuration option (but just always doing a case insensitive lookup probably works in practice)". |
|
@u-fischer The new version uses a case-insensitive lookup, iff a case-sensitive lookup does not find anything in a particular location. This is similar to kpathsea. |
|
@zauguin looks good (but as I'm windows I can't make real tests here). I also run the tests from the fontspec and unicode-math testsuite and while there are number of failures none of them seem to be related to the code changes ;-). |
See lualatex/luaotfload#417
The text was updated successfully, but these errors were encountered: