Disappearing quoteleft in luatex
Dear all, I see a strange thing happening with the following document all with uptodate TeX Live: \documentclass{article} \usepackage{fontspec} \setmainfont{Gaultier} \begin{document} Hello `World' \end{document} xelatex: ok lualatex: quoteleft character is missing lualatex-dev with [RawFeature={mode=harf;}]: ok So it seems that the lualatex font loader seems to be broken here. The character is present in the font 325 (0x145) U+2018 "quoteleft" LEFT SINGLE QUOTATION MARK and separate from the quoteright. Any suggestions how to fix these kind of errors? Best Norbert -- PREINING Norbert http://www.preining.info Accelia Inc. + IFMGA ProGuide + TU Wien + JAIST + TeX Live + Debian Dev GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
On Fri, Feb 07, 2020 at 09:39:02AM +0900, Norbert Preining wrote:
Dear all,
I see a strange thing happening with the following document all with uptodate TeX Live:
\documentclass{article} \usepackage{fontspec} \setmainfont{Gaultier} \begin{document} Hello `World' \end{document}
xelatex: ok lualatex: quoteleft character is missing lualatex-dev with [RawFeature={mode=harf;}]: ok
So it seems that the lualatex font loader seems to be broken here.
The character is present in the font 325 (0x145) U+2018 "quoteleft" LEFT SINGLE QUOTATION MARK and separate from the quoteright.
The "quoteleft" is present, but you are dealing with an odd font which does not have a ASCII "grave" (U+0060). Given that the replacement is implemented as a glyph substitution it only works if the original glyph exists.
Any suggestions how to fix these kind of errors?
Use a proper font or input ‘ directly. You can probably also manually add a lookup to the fontloader which includes these replacement without checking if the original characters exists, but I'm currently not sure if that might break something. Best, Marcel
Hi Marcel, thanks for your answer. On Fri, 07 Feb 2020, Marcel Fabian Krüger wrote:
The "quoteleft" is present, but you are dealing with an odd font which does not have a ASCII "grave" (U+0060). Given that the replacement is implemented as a glyph substitution it only works if the original glyph exists.
Indeed, it is not there, only U+0300 gravecomb. Strange. So does that mean that the luatex fontloader uses U+0060 instead of the quoteleft for ` ? And harfbuzz (xetex, lualatex-dev with harf) uses the quoteleft for `? Best Norbert -- PREINING Norbert http://www.preining.info Accelia Inc. + IFMGA ProGuide + TU Wien + JAIST + TeX Live + Debian Dev GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
participants (2)
-
Marcel Fabian Krüger
-
Norbert Preining