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

Herbert Voss Herbert.Voss at fu-berlin.de
Tue Jan 22 21:49:16 CET 2019


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


More information about the lucida mailing list