3

How can I simulate a bold font if I only have a Regular Height TTF file?

I'm trying to use Ibarra Real font, but I have only Italic and Regular font files.

Using xelatex and a preamble like:

\usepackage{fontspec}
\setmainfont[Extension=.ttf,BoldFont=IBregular,ItalicFont=IBitalic,Numbers=OldStyle]{IBregular}

I can see it, but \textbf is the same as normal text.

Is it possible to modify font weight in latex?

6

I don't have that font, so I used (actually abused) EB Garamond, but it should work the same with your font.

\documentclass{article}
\usepackage{fontspec}
\setmainfont[
  Ligatures=TeX,
  Extension=.otf,
  BoldFont=EBGaramond12-Regular,
  BoldFeatures={FakeBold=3},
  ItalicFont=EBGaramond12-Italic,
  BoldItalicFont=EBGaramond12-Italic,
  BoldItalicFeatures={FakeBold=3},
]{EBGaramond12-Regular}

\begin{document}
Abc \textbf{Abc} \textit{Abc} \textbf{\textit{Abc}}
\end{document}

Adjust the emboldening factor.

enter image description here

  • Thanks, @Yori linked a version with bolds, but your response is the think I was looking for. – Zhen Aug 1 '14 at 18:37
  • 3
    @Zhen Considering what the Ibarra Real font is, I would advise you not to use boldface with it. As I use to say, it's like Ben Hur wearing a wristwatch. – egreg Aug 1 '14 at 19:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.