# Problems with TextButtons showing italic fonts

**URL:** <https://forum.juce.com/t/problems-with-textbuttons-showing-italic-fonts/10098>\
**Category:** General JUCE discussion\
**Created:** [March 12, 2013, 1:14pm UTC](https://forum.juce.com/t/problems-with-textbuttons-showing-italic-fonts/10098 "2013-03-12T13:14:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oscar1771](https://avatars.discourse-cdn.com/v4/letter/o/6bbea6/32.png) [@Oscar1771](https://forum.juce.com/u/Oscar1771)\
**Post date:** [March 12, 2013, 1:14pm UTC](https://forum.juce.com/t/problems-with-textbuttons-showing-italic-fonts/10098/1 "2013-03-12T13:14:50Z")

</div>

Hi everyone,

I have some TextButton with text written inside of them. I wanted to use any Font types so I overrode LookAndFeel::drawButtonText() function to make use of them. I tested a lot of system fonts and I realised many of them don’t appear in “italic” style. I have also looked up in JuceDemo code, which works perfect showing fonts in any “bold” or “italic” style, and uses a TextEditor component to show them. What is happening to TextButtons with italic styles?

Thanks to all

Oscar

---

<div class="post-metadata">

**Author:** ![Oscar1771](https://avatars.discourse-cdn.com/v4/letter/o/6bbea6/32.png) [@Oscar1771](https://forum.juce.com/u/Oscar1771)\
**Post date:** [March 13, 2013, 10:36am UTC](https://forum.juce.com/t/problems-with-textbuttons-showing-italic-fonts/10098/2 "2013-03-13T10:36:28Z")

</div>

I just tried with a TextEditor (the same way as JuceDemo) and I have the same problem, so there might be another reason.

---

<div class="post-metadata">

**Author:** ![Oscar1771](https://avatars.discourse-cdn.com/v4/letter/o/6bbea6/32.png) [@Oscar1771](https://forum.juce.com/u/Oscar1771)\
**Post date:** [March 13, 2013, 12:58pm UTC](https://forum.juce.com/t/problems-with-textbuttons-showing-italic-fonts/10098/3 "2013-03-13T12:58:24Z")

</div>

I found it. I didn’t realise there was a function to get all the styles available por a particular system Font: Font::findAllTypefaceStyles(). My system didn’t have many italic version of the fonts :oops:
