0

I'm using gnome-terminal 3.28.2 (on an Ubuntu 18.04 computer) with the font 'DejaVu Sans Mono Book'.

In the terminal, the character '𝟆' is rendered okay.

But when I use it in a tex document compiled with xelatex, all I get is an empty box even when choosing DejaVu Sans Mono font explicitly.

\documentclass{report}
\usepackage{fontspec}  % must be present
% \usepackage{DejaVuSansMono} % this made no difference
\begin{document}
%𝟆 % blank page without fontspec package

{\fontspec{DejaVu Sans}𝟆}  % Now an empty box
\end{document}

Why could this be happening?

I did fc-list and saw:

/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf: DejaVu Sans Mono:style=Book

So 'Book' is something called a style.

Is it because I need to set the style as well? How can I do that?

I'm using texlive 2020.

(I'm not looking for a math symbol (not sure if that's how they are called) used in the math-mode, but as a unicode character.)

Does anyone have any idea?

5
  • 1
    are you sure your terminal isn't using a different fallback font for that character? the version of dejavu mono that I have installed doesn't have U+1D7C6 either Jan 19, 2022 at 7:58
  • Oh.. Is there way to check that? And how can we see the glyphs available in a font? Is there a tool for that?
    – J...S
    Jan 19, 2022 at 8:30
  • I guess that's ubuntu specific. Found here that it might be something handled by font-config.
    – J...S
    Jan 19, 2022 at 8:32
  • 1
    Use albatross on the command-line (it's in recent TeX Live). You simply pass it the code point you're looking for and it lists all fonts containing a glyph for that.
    – TeXnician
    Jan 19, 2022 at 8:33
  • Thanks. DejaVu Sans Mono is not showing up for 𝟆 but DejaVu Sans is. So I suppose it isn't there.
    – J...S
    Jan 19, 2022 at 8:35

0

You must log in to answer this question.

Browse other questions tagged .