<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div class="BodyFragment"><font size="2"><span style="font-size:10pt;">
<div class="PlainText">Thank you, Bruno.<br>
<br>
The code you sent, and also the file from Herbert Voss, both work very conveniently for immediate use under XeTeX using some other math code.
<br>
<br>
However I also get the error you mention using these approaches on lucida-amsmath.tex under XeLaTeX:<br>
<br>
! Internal error: bad native font flag in `map_char_to_glyph’<br>
<br>
The error goes away when I remove "\wh” from the following line of the file: <br>
<br>
\wh{\mathbf{K}}(i|i),\qquad i=1,\dots,n. <br>
<br>
( \wh is shorthand for \widehat in the lucida-amsmath code: \newcommand{\wh}{\widehat}.)<br>
<br>
This is under the most recent release of the OT fonts and of Texlive. Of course, I have no idea why this error occurs!
<br>
<br>
But you have resolved fully my more immediate question. <br>
<br>
Thanks again,<br>
John<br>
<br>
PS: I’m attaching the modified file; the problematic line is 173. Everything else works works fine.<br>
</div>
</span></font></div>
<div class="BodyFragment"><font size="2"><span style="font-size:10pt;">
<div class="PlainText"><br>
<br>
<br>
<br>
> On Aug 6, 2017, at 1:33 PM, Bruno Voisin <bvoisin@me.com> wrote:<br>
> <br>
>> Le 6 août 2017 à 19:13, Bruno Voisin <bvoisin@me.com> a écrit :<br>
>> <br>
>> Here's a version of lucida-amsmath.tex modified for Lucida OT. The code is slightly different from the one in lucidaot.tex, I've pasted it from one of my files (being in a rush), it's safer to stick to the code from lucidaot.tex.<br>
> <br>
> Well, I should probably wait until the end of the weekend before posting anything. The above probably doesn't make much sense, sorry.<br>
> <br>
> What I meant was, you just need to replace<br>
> <br>
> \usepackage[T1]{fontenc}<br>
> \usepackage{lucidabr}<br>
> <br>
> by<br>
> <br>
> \usepackage{fontspec} % support opentype text fonts<br>
> \usepackage{unicode-math} % support opentype math fonts<br>
> <br>
> \defaultfontfeatures{Scale=.95}<br>
> <br>
> \setmainfont[% main rm<br>
> Ligatures=TeX,<br>
> ItalicFont=LucidaBrightOT-Italic.otf,<br>
> BoldFont=LucidaBrightOT-Demi.otf,<br>
> BoldItalicFont=LucidaBrightOT-DemiItalic.otf,<br>
> ]{LucidaBrightOT.otf}<br>
> <br>
> \setsansfont[% main sans<br>
> Ligatures=TeX,<br>
> ItalicFont=LucidaSansOT-Italic.otf,<br>
> BoldFont=LucidaSansOT-Demi.otf,<br>
> BoldItalicFont=LucidaSansOT-DemiItalic.otf,<br>
> ]{LucidaSansOT.otf}<br>
> <br>
> \setmonofont[% main typewriter<br>
> ItalicFont=LucidaSansTypewriterOT-Oblique.otf,<br>
> BoldFont=LucidaSansTypewriterOT-Bold.otf,<br>
> BoldItalicFont=LucidaSansTypewriterOT-BoldOblique.otf,<br>
> ]{LucidaSansTypewriterOT.otf}<br>
> <br>
> \setmathfont{LucidaBrightMathOT.otf}<br>
> \setmathfont[version=bold]{LucidaBrightMathOT-Demi}<br>
> <br>
> If you want calligraphic letters to look like they used to in Type 1, not flourish and curly as they now are, you need to add the RawFeature=+ss04 option to both \setmathfont calls.<br>
> <br>
>> Very recently, Herbert Voss has posted on CTAN a package aimed at making the use of Lucida OT more user-friendly, similar to lucidabr :<br>
>> <br>
>> <a href="https://ctan.org/pkg/lucida-otf">https://ctan.org/pkg/lucida-otf</a><br>
>> <br>
>> Its release was announced a month ago by Karl Berry on the lucida-dev list (private), but I don't know whether there's been a public announcement.<br>
> <br>
> It was here not on lucida-dev, hence public obviously. Should check things twice before posting!<br>
> <br>
> Bruno<br>
> <br>
<br>
</div>
</span></font></div>
</body>
</html>