[Solved] How to use Bodoni Italic (non-default font)

Eric Asks: How to use Bodoni Italic (non-default font)
This is the gfsbodoni.sty file. I don’t know how to italicise the text. The text is only for a section in the document. Using Overleaf, pdflatex.

What I tried and they produce non-italicised text:

  • textit{{fontfamily{gfs}selectfont Bodoni Italic. lipsum[2-4]}}
  • fontfamily{gfs}selectfont itshape Bodoni Italic. lipsum[2-4]}

The font is non-default. So I use some fonts using specific commands (fibrabook is an example), and some using these 3 letters. The fonts all work, because I read that I can find info in the .sty file. However, I am confused on how to italicise it now that I have it

EDIT: Complete shortcode

Code:
documentclass[a5paper,pagesize,10pt,bibtotoc,pointlessnumbers,
normalheadings,DIV=9,twoside=false]{scrbook}

KOMAoptions{DIV=last}
usepackage{gfsbodoni}
usepackage{tgadventor}
usepackage[scaled]{berasans}
usepackage[bitstream-charter]{mathdesign}
usepackage{scholax}
usepackage{palatino}

usepackage[T1]{fontenc}

begin{document}
newpage
poiretonefamily
PoiretOne. lipsum[2-4]
newpage
textbf{textit{Times. lipsum[2-4]}}
newpage
textit{{fontfamily{gfs}selectfont Bodoni Italic. lipsum[2-4]} }
end{document}

I probably didn’t include everything necessary, but I don’t see how the problem is not clear, so please give me details of why the problem is not clear. I imagine textit or itshape would italicise a font, but they don’t. The font shows normally.

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.