TransWikia.com

Use local OTF file for boldface and italic styles

TeX - LaTeX Asked by user224899 on June 1, 2021

I recently acquired three OTF files for Minion Pro (minionpro-regular.otf, minionpro-it.otf, and minionpro-semibod.otf). I followed this guide from overleaf on how to use set MinionPro as my main font using the setmainfont{MinionPro-Regular.otf} command. I did upload all three files via project.

https://pt.overleaf.com/latex/examples/how-to-use-minion-pro-fonts-with-xelatex/ydsdkcpvsstg

However, this does not cover italic and boldface. Currently, if I try textbf or textit, only regular texts show up. Is there a way to set minionpro-it.otf and minionpro-semibod.otf as the font for italic and boldface respectively?

One Answer

Use the ItalicFont= and BoldFont= options, such as

setmainfont{MinionPro}[
  UprightFont = *-regular ,
  BoldFont = *-semibold ,
  ItalicFont = *-it ,
  Extension = .otf ]

Add BoldItalicFont = if you have one, enable any other features you want to use, and tweak to match your filenames.

Answered by Davislor on June 1, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP