Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
2  
In the name of all that is holy, please do not do this. Just download the bold version of the typeface! Faked bolds should be eliminated. –  Alan Shutko Aug 1 at 18:18
    
I used the download zip at ibarrareal.es , Better with you link –  Zhen Aug 1 at 18:36

1 Answer 1

up vote 6 down vote accepted

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

share|improve this answer
    
Thanks, @Yori linked a version with bolds, but your response is the think I was looking for. –  Zhen Aug 1 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 at 19:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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