Questions tagged [fontfamily]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
93 views

Change Font Family of Everything Including Captions in revtex4-1

I have been having trouble changing the font of the revtex4-1 document class. Specifically, the following example changes the font of everything except the captions. \documentclass[a4paper, reprint,...
5
votes
3answers
138 views

How to use different font families for the same unicode block in ucharclases?

Here is an MWE: \documentclass{article} \usepackage{fontspec} \usepackage[Sinhala,Latin]{ucharclasses} \newfontfamily\FooBarr{Noto Sans} \newfontfamily\sinhala{Noto Sans Sinhala} \newfontfamily\...
1
vote
0answers
31 views

Changing and declaring fonts for parts of the document without changing the default

This might be a silly question, but I am very confused of how to declare fonts for only one sentence/paragraph. The solution I found was to use {\fontfamily{ppl}\selectfont ... } However, I am not ...
3
votes
2answers
267 views

Use Consolas font family in lstlisting (the whole document is in Vietnamese)

I am typing a document in Vietnamese about C++, so of course there will be some code. I will use lstlisting environment as it is the best choice for code. However, the \ttfamily (default monospace ...
2
votes
3answers
153 views

substitutefont result and \f@family

Is there any way to retrieve the resulting font family of substitutefont, e.g. with \f@family? It seems that \f@family is not affected by \substitutefont{<encoding>}{<family>}{<new-...
2
votes
1answer
448 views

Computer Modern Bold SF has rounded corners

When experimenting with the Beamer class I noticed that when using the default SF font (which is Computer Modern AFAIK) in boldface the corners are rounded. It looks like completely different font. (...
5
votes
2answers
1k views

\fontfamily{…}\selectfont does not work with XeLaTeX engine

The following MWE works fine with pdfLaTeX engine but does not with XeLaXeX engine. Does \fontfamily{...}\selectfont work only with some font family when using XeLaTeX engine? Is there an appropriate ...
3
votes
1answer
207 views

Why cannot I change the font type at will using `\fontfamily`?

I am trying to use \fontfamily command to insert specific kinds of fonts for specific contents in my document. Also, using the command \renewcommand{\ttdefault}{<Font Name>} does not seem to ...