[Tex/LaTex] Change bold font

fontsfontsize

I want to use Avenir Next Medium as the bold font for my document whenever I use \textbf. Is there a way I can use \textbf and specify a font to be used. After that, can I also customize the size for any font rendered using \textbf?

Best Answer

Since the Avenir Next font is a commercial font, I'm assuming you are using either XeLaTeX or LuaLaTeX. It's easy to specify a different font for bold text. Here's a simple example:

% !TEX TS-program = XeLaTeX
\documentclass[]{article}
\usepackage{fontspec}
\setmainfont[Ligatures=TeX,BoldFont={Linux Biolinum O},Scale=MatchLowercase]{Linux Libertine O}
\begin{document}

This is some text. \textbf{This is some ``bold'' text}
\end{document}

output of code