# Fallback typeface on Mac

**URL:** <https://forum.juce.com/t/fallback-typeface-on-mac/6427>\
**Category:** General JUCE discussion\
**Created:** [February 15, 2011, 3:10pm UTC](https://forum.juce.com/t/fallback-typeface-on-mac/6427 "2011-02-15T15:10:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ckk](https://avatars.discourse-cdn.com/v4/letter/c/d26b3c/32.png) [@ckk](https://forum.juce.com/u/ckk)\
**Post date:** [February 15, 2011, 3:10pm UTC](https://forum.juce.com/t/fallback-typeface-on-mac/6427/1 "2011-02-15T15:10:14Z")

</div>

Hi all,

when I set a font with Font(“Typaface\_that\_doesn’t\_exist”, 12.f, Font::plain) I get the font I would get with Font(12.f) on windows (haven’t checked whether it really is the same font, but I can write something readable). On Mac I get some kind of empty font that doesn’t render any text.  
At the moment I check for getStringWidth(“test”)\>0 (which is zero for the latter case) and manually set the standard font if needed.

Is there a fallback typeface that is taken on Win but not on Mac or is there something I do wrong?

Chrisa

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [February 15, 2011, 8:17pm UTC](https://forum.juce.com/t/fallback-typeface-on-mac/6427/2 "2011-02-15T20:17:10Z")

</div>

Yeah, it’s a problem to implement a fallback font on the mac - I couldn’t find any way to get the system to tell me whether a glyph is present in the font or not. I’ll take another look at it when I get chance, it was something I’ve been meaning to look at again.
