[XeTeX] Guaranteed Unicode replacement glyph in every TeX installation?

Doug McKenna doug at mathemaesthetics.com
Sun Aug 22 00:23:45 CEST 2021


Ulrike -

Excellent.  Thank you!

Using \setmainfont{DejaVuSerif.ttf} works on my non-Linux machine, and it is not listed as "installed" in my Mac's FontBook, which means it's being used solely within the TeXosystem.

DejaVuSerif is a variable-width font.  Is there a similar fixed-width OpenType/TrueType font distributed with TeXLive that would work?


Doug McKenna
Mathemaesthetics, Inc.



----- Original Message -----
From: "news3" <news3 at nililand.de>
To: "xetex" <xetex at tug.org>
Sent: Saturday, August 21, 2021 10:39:25 AM
Subject: Re: [XeTeX] Guaranteed Unicode replacement glyph in every TeX	installation?

Am Sat, 21 Aug 2021 09:25:14 -0600 (MDT) schrieb Doug McKenna:

> Thanks all for your interesting responses. 
> 
> Unfortunately, my possibly poorly worded question remains unanswered. Let me try again. 
> 
> Consider the short example just used: 
> 
> \documentclass{article} 
> \usepackage{fontspec} 
> \setmainfont{DejaVu Serif} 
> 
> \begin{document} 
> ^^^^fffd 
> \end{document} 
> 
> When I run it, fontspec complains that it can't find the font. So obviously "DejaVu Serif" is not installed, either on my system or anywhere in the bowels of all the ~150,000 TeXLive (2019) files that have been installed in the TDS on my machine. 

No, it only says that it is not found by fontname. Something that
happens often on linux. Try with \setmainfont{DejaVuSerif.ttf}


> So, is there a font name I can use in the \setmainfont{} command
> that is ALWAYS available (upon TeX installation) when processing
> this LaTeX file with XeTeX? Or always available after a certain
> version of a TeX installation? 

I have no idea when DejaVu was added but it is in texlive 2019.
If you want to support also older systems try e.g. on overleaf.



-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/


More information about the XeTeX mailing list.