[lucida] Lucida & Unicode — lualatex/OTF/UTF-8

Calum Mackay calum.mackay at cdmnet.org
Wed Jan 23 01:32:57 CET 2019


hi Herbert,

Unfortunately, your method seems at odds with the lucida-otf pkg (or 
vice versa!); if I add:

	\usepackage{lucida-otf}

to your example below, it chokes on the ⅙:

! Missing $ inserted.
<inserted text>
$
l.10 ⅙
        ℃  \& ℉


On 22/01/2019 8:49 pm, Herbert Voss wrote:
> Am 22.01.19 um 21:16 schrieb Calum Mackay:
> 
>> e.g. from a recent doc, I was using ⅙, ℃ & ℉. Interestingly, I note 
>> that \textcelsius doesn't display either, but \textdegree does, which 
>> could then be followed by C/F.
>>
>> What do others do?
>>
>> I'm aware of Lucida Grande having some Unicode chars and, indeed, have 
>> it on my Mac as a system font. But it's not part of the TUG Lucida 
>> set, and it's a sans font.
>>
>> Currently I'm doing:
>>
>>      \newfontface\myunicodefont[Scale=MatchLowercase]{Libertinus Serif}
>>      % we want this command to be “long”,
>>      % i.e. to be able to span paragraphs
>>      \newcommand\myunicode[1]{{\myunicodefont #1}}
>>
>> and then etc:
>>
>>      \myunicode{⅙}
>>
>> but that's clunky.
>>
>>
>> Is there a way to tell LuaLaTeX to fall-back to a given font, if a 
>> char isn't available in the currently-selected font?
> 
> \documentclass{book}
> \usepackage{fontspec}
> \setmainfont{Lucida Bright OT}
> \usepackage{newunicodechar}
> \newfontfamily\Lib{Libertinus Serif}
> \newunicodechar{⅙}{{\Lib ⅙}}
> \newunicodechar{℃}{{\Lib℃}}
> \newunicodechar{℉}{{\Lib℉}}
> \begin{document}
> ⅙ ℃  \& ℉
> \end{document}
> 
> 
> Herbert
> -- 
> http://tug.org/lucida/
> http://tug.org/mailman/listinfo/lucida


More information about the lucida mailing list