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

Doug McKenna doug at mathemaesthetics.com
Mon Aug 23 18:58:45 CEST 2021


George - 

Thanks! 

- Doug McK. 


From: "George N. White III" <gnwiii at gmail.com> 
To: "xetex" <xetex at tug.org> 
Sent: Sunday, August 22, 2021 8:14:58 AM 
Subject: Re: [XeTeX] Guaranteed Unicode replacement glyph in every TeX installation? 

On Fri, 20 Aug 2021 at 22:46, Doug McKenna < [ mailto:doug at mathemaesthetics.com | doug at mathemaesthetics.com ] > wrote: 



Using XeTeX, I want to typeset a LaTeX document into a PDF file. The LaTeX source code in UTF-8 



BQ_BEGIN

expressly includes the Unicode Replacement character (� = U+FFFD) (a black diamond with a 

BQ_END

BQ_BEGIN

question mark in it). 

I want to typeset it in this single document using a monospaced font in one place, and in another 

BQ_END

BQ_BEGIN

place in a variable-width font. 

I understand that XeTeX can take advantage of one's system's installed fonts, but my LaTeX file 

BQ_END

BQ_BEGIN

is being generated by another program that doesn't know what those fonts are or what glyphs 

BQ_END

BQ_BEGIN

they support. I simply want to guarantee that the fonts used are always available when processing 

BQ_END

BQ_BEGIN

that LaTeX file. 

BQ_END

BQ_BEGIN


I also understand that it's possible to synthesize the glyph graphically without using a font, but I'd 

BQ_END

BQ_BEGIN

rather not go that route. 

So ... What fixed-width and variable-width OpenType (or other) fonts, if any, are always distributed 

BQ_END

BQ_BEGIN

with TeX or TeXLive or whatever that one can rely upon to be available for placing this particular 

BQ_END

BQ_BEGIN

glyph in a final PDF file? What would be the correct incantation to doing so? 

BQ_END

0xFFFD should be in any mainstream general use OpenType font. It might be better to ask which 
OT fonts to avoid due to low quality, bugs, lack of ongoing support, etc. There has been a lot of 
churn in the available fonts over the years, so the answer may be different if you need fonts that 
can be expected to have long-term support and availability. 

-- 
George N. White III 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/xetex/attachments/20210823/c10abdea/attachment.html>


More information about the XeTeX mailing list.