1

The style examples on https://tug.org/FontCatalogue/interregular/ show the most common styles of fonts used in documents. https://fonts.google.com/specimen/Inter shows that an even heavier style black 900 ("black") is supplied. And if one scrolls down in that "box"/window on https://www.ctan.org/tex-archive/fonts/inter/doc, it also says

Current font styles:
Name    Weight class
Thin    100
Thin Italic     100
[...]
Bold    700
Bold Italic     700
Extra Bold  800
Extra Bold Italic   800
Black   900 <===========================!!
Black Italic    900 <===========================!!

I would like to enable that black style for just a few words, e.g. within a macro, maybe with a command similar to \texttt{asdf}. Once these few words are typeset, I would like to be able to return to the "normal" bold format when it is called. Is this possible?

0

2 Answers 2

2

From the README that pops up at https://www.ctan.org/tex-archive/fonts/inter/, "The semibold, extrabold and heavy options activate those series as the default bold series." Thus, we see that \usepackage[extrabold]{inter} is what is required to make the \bfseries font extra bold.

\documentclass{article}
\usepackage[extrabold]{inter}
\begin{document}
\sffamily ABC vs \textbf{ABC}
\end{document}

enter image description here

To make all the styles simultaneously available, declarations are provided.

\documentclass{article}
\usepackage{inter}
\begin{document}
\sffamily ABC vs 

\intersemibold ABC \mdseries vs

\textbf{ABC} vs

\interextrabold ABC \mdseries vs

\interheavy ABC \mdseries
\end{document}

enter image description here

For more information, see also inter-samples.tex at https://www.ctan.org/tex-archive/fonts/inter/doc.

10
0

Another way to load all the styles of the font is:

\documentclass{article}
\usepackage{fontspec}

% Works with this version of Inter:
% https://www.fontsquirrel.com/fonts/inter
\defaultfontfeatures[Inter]{
  Path=fonts/,
  Extension=.ttf,
  FontFace={ul}{n}{Font={*-Thin-BETA}},
  FontFace={ul}{it}{Font={*-ThinItalic-BETA}},
  FontFace={el}{n}{Font={*-ExtraLight-BETA}},
  FontFace={el}{it}{Font={*-ExtraLightItalic-BETA}},
  FontFace={l}{n}{Font={*-Light-BETA}},
  FontFace={l}{it}{Font={*-LightItalic-BETA}},
  UprightFont=*-Regular,
  ItalicFont=*-Italic,
  FontFace={mb}{n}{Font={*-Medium}},
  FontFace={mb}{it}{Font={*-MediumItalic}},
  FontFace={sb}{n}{Font={*-SemiBold}},
  FontFace={sb}{it}{Font={*-SemiBoldItalic}},
  BoldFont=*-Bold,
  BoldItalicFont=*-BoldItalic,
  FontFace={eb}{n}{Font={*-ExtraBold}},
  FontFace={eb}{it}{Font={*-ExtraBoldItalic}},
  FontFace={ub}{n}{Font={*-Black}},
  FontFace={ub}{sl}{Font={*-Black}, FakeSlant=0.15},
}

\setmainfont{Inter}
\setsansfont{Inter}

% Declare \ulseries, \elseries, etc. here using the following template:
\newcommand\ubseries{\fontseries{ub}\selectfont}
% Define \textul, \textel, etc. here, using the following template:
\DeclareTextFontCommand\textub{\ubseries}

\begin{document}
Inter \textub{Black} versus \textbf{Bold}
\end{document}

Inter sample

One advantage of this is that it will also work with the Black or Ultra Bold weight of all your other font families, if you set them up the same way.

For this setup, I downloaded this version of Inter into a subdirectory named fonts.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .