# TextEditor bold/italic glyph // fallback font support on macOS

**URL:** <https://forum.juce.com/t/texteditor-bold-italic-glyph-fallback-font-support-on-macos/43194>\
**Category:** Development\
**Created:** [December 10, 2020, 5:51pm UTC](https://forum.juce.com/t/texteditor-bold-italic-glyph-fallback-font-support-on-macos/43194 "2020-12-10T17:51:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nonlethalapplications](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/nonlethalapplications/32/10298_2.png) [@nonlethalapplications](https://forum.juce.com/u/nonlethalapplications)\
**Post date:** [December 10, 2020, 5:51pm UTC](https://forum.juce.com/t/texteditor-bold-italic-glyph-fallback-font-support-on-macos/43194/1 "2020-12-10T17:51:59Z")

</div>

Hi guys,

we’re trying to use a JUCE TextEditor with Japanese and Chinese glyphs while also using italic and bold text formatting. It turns out the font we’re using (Arial Unicode MS) doesn’t have bold and italic typefaces. Italic is apparently hacked by JUCE’s font drawing using a transform but bold does not work that way.

I tried to find other fonts I could use that support both Chinese/Japanese glyphs and also bold but couldn’t find any. Is there an easy way to use the default system font which apparently does support a wide range of characters and also bold?

Ideally there would be a way to replace glyphs not supported in a font supporting different typefaces (e.g. Arial or Helvetica) and it looks like there’s a fallback mechanism within juce::Font.  
However, this does not seem to be implemented on macOS.

Any help how to solve this would be much appreciated!  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![ttg](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ttg/32/14456_2.png) [@ttg](https://forum.juce.com/u/ttg)\
**Post date:** [December 13, 2020, 8:09am UTC](https://forum.juce.com/t/texteditor-bold-italic-glyph-fallback-font-support-on-macos/43194/2 "2020-12-13T08:09:27Z")

</div>

Yep, just font rendering has some limitations.  
the moment you need anything beyond roman/latin characters (unicode, fallback glyphs, emojis, proper-RTL). you are in a dead-zone.

This issue will worsen if you’re targeting also Android and other platforms.  
If it’s a plug-in and the text area scope is very clear. you’d might be better off implementing a ‘native’ (macOS/Windows) components for the actual text handling.

Here are some threads about related issues:

> [@Serious issue with TextEditor: TextEditor and non-roman characters](https://forum.juce.com/t/serious-issue-with-texteditor-texteditor-and-non-roman-characters/41445/15):
>
> That would really simplify fixing TextEditor

> [@Garbled Text: Windows / JUCE 6](https://forum.juce.com/t/garbled-text-windows-juce-6/41282/6):
>
> And yes, I do get the impression that the difficult bugs are being ignored at the moment! We have a whole set of problems with fallback fonts slight_smile

> [@Help : how can get font fall-back work on TextEditor Component!](https://forum.juce.com/t/help-how-can-get-font-fall-back-work-on-texteditor-component/27765/7):
>
> Bump - still having this problem with the TextEditor…! In other parts of the application, we were able to “enable” fallback fonts by replacing things like g.drawText(...) with AttributedStrings; (mostly those were our own custom components, so that was easy to do) But what about TextEditor? Did anybody managed to make it work? Is it something we can expect to be fixed at some point or shall we look at some ad-hoc fix for the time being? Thank you! slight_smile

---

<div class="post-metadata">

**Author:** ![nonlethalapplications](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/nonlethalapplications/32/10298_2.png) [@nonlethalapplications](https://forum.juce.com/u/nonlethalapplications)\
**Post date:** [December 15, 2020, 10:46am UTC](https://forum.juce.com/t/texteditor-bold-italic-glyph-fallback-font-support-on-macos/43194/3 "2020-12-15T10:46:17Z")

</div>

Thanks for your reply!  
Well that’s really unfortunate…  
Our app is a Desktop app and working with text is an essential part of it.  
So that really is a problem for us.

It looks like we can’t expect a fix anytime soon so we’ll need to come up with a somewhat hacky solution it seems.
