# Plugin (wrong font)

**URL:** <https://forum.juce.com/t/plugin-wrong-font/11166>\
**Category:** MacOSX and iOS\
**Created:** [May 15, 2012, 4:26pm UTC](https://forum.juce.com/t/plugin-wrong-font/11166 "2012-05-15T16:26:39Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![chkn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/chkn/32/3862_2.png) [@chkn](https://forum.juce.com/u/chkn)\
**Post date:** [May 15, 2012, 4:26pm UTC](https://forum.juce.com/t/plugin-wrong-font/11166/1 "2012-05-15T16:26:39Z")

</div>

Thats how the Juce-Demo plugin looks like with the latest tip in Logic Pro:

[attachment=0]jucegui.png[/attachment]

I also have the weird behavior that components with transparant-colour seems to cut out the window, and you can look through the window(?)

XCode 3.2.6

---

<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:** [May 15, 2012, 8:08pm UTC](https://forum.juce.com/t/plugin-wrong-font/11166/2 "2012-05-15T20:08:53Z")

</div>

Weird… Is that a music font? I’ve no idea how it could end up like that!

---

<div class="post-metadata">

**Author:** ![chkn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/chkn/32/3862_2.png) [@chkn](https://forum.juce.com/u/chkn)\
**Post date:** [May 16, 2012, 9:09am UTC](https://forum.juce.com/t/plugin-wrong-font/11166/3 "2012-05-16T09:09:18Z")

</div>

not idea which font… I am the only one?  
maybe this helps…

[attachment=0]debug1.png[/attachment]

---

<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:** [May 16, 2012, 9:29am UTC](https://forum.juce.com/t/plugin-wrong-font/11166/4 "2012-05-16T09:29:21Z")

</div>

It must be something that the host is doing that’s mucking around with the graphics system - maybe there’s some kind of scaling setting? Can’t think of anything it could be though, I’m a bit stumped by that!

---

<div class="post-metadata">

**Author:** ![chkn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/chkn/32/3862_2.png) [@chkn](https://forum.juce.com/u/chkn)\
**Post date:** [May 16, 2012, 10:58am UTC](https://forum.juce.com/t/plugin-wrong-font/11166/5 "2012-05-16T10:58:38Z")

</div>

The behavior is definitly new, didnt’t have the problem with juce-tips from the beginning of april.

---

<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:** [May 16, 2012, 4:25pm UTC](https://forum.juce.com/t/plugin-wrong-font/11166/6 "2012-05-16T16:25:54Z")

</div>

I can’t think of anything font-related that has changed since then. There’s some new CoreText stuff, but that was already there in april…

---

<div class="post-metadata">

**Author:** ![chkn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/chkn/32/3862_2.png) [@chkn](https://forum.juce.com/u/chkn)\
**Post date:** [May 16, 2012, 4:34pm UTC](https://forum.juce.com/t/plugin-wrong-font/11166/7 "2012-05-16T16:34:30Z")

</div>

could you (or someone else) reproduce the issue? Not sure which version i used in april (normally i update the juce source very often)

---

<div class="post-metadata">

**Author:** ![chkn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/chkn/32/3862_2.png) [@chkn](https://forum.juce.com/u/chkn)\
**Post date:** [May 16, 2012, 4:35pm UTC](https://forum.juce.com/t/plugin-wrong-font/11166/8 "2012-05-16T16:35:40Z")

</div>

will try tomorrow to find out since which tip i have this issue

---

<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:** [May 16, 2012, 4:38pm UTC](https://forum.juce.com/t/plugin-wrong-font/11166/9 "2012-05-16T16:38:59Z")

</div>

Thanks, it’d hopefully be simple to understand if we knew which commit caused it.

---

<div class="post-metadata">

**Author:** ![TheVinn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/thevinn/32/806_2.png) [@TheVinn](https://forum.juce.com/u/TheVinn)\
**Post date:** [May 16, 2012, 5:39pm UTC](https://forum.juce.com/t/plugin-wrong-font/11166/10 "2012-05-16T17:39:43Z")

</div>

> [@jules](#):
>
> Thanks, it’d hopefully be simple to understand if we knew which commit caused it.

Just a guess but…the refactoring of Font and Typeface to support named styles…

---

<div class="post-metadata">

**Author:** ![sonic59](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@sonic59](https://forum.juce.com/u/sonic59)\
**Post date:** [May 16, 2012, 8:31pm UTC](https://forum.juce.com/t/plugin-wrong-font/11166/11 "2012-05-16T20:31:15Z")

</div>

> [@](#):
>
> Just a guess but…the refactoring of Font and Typeface to support named styles…

If that is the case, then chkn you should try the last commit of April (9c21813960fb) which is one commit prior to when the font styles stuff was integrated for the first time. You should probably try the commit after that too.  
However, by the look of your second screenshot, I’m not so sure that is the problem. The OSXTypeface looks right, it has a proper font name and font style, so the conversion from default font names to actual font names worked fine.

What version of OS X are you using?  
Have you tried the plugin in other mac hosts? Do you see the same issue?

---

<div class="post-metadata">

**Author:** ![chkn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/chkn/32/3862_2.png) [@chkn](https://forum.juce.com/u/chkn)\
**Post date:** [May 17, 2012, 2:05pm UTC](https://forum.juce.com/t/plugin-wrong-font/11166/12 "2012-05-17T14:05:39Z")

</div>

yes sonic, this commit is causing the issue:

> <https://github.com/juce-framework/JUCE/commit/941907a3d18c4abc23f6902e7dbd7e1f82fa6134>

> [@](#):
>
> Have you tried the plugin in other mac hosts? Do you see the same issue?

No, seems to be logic only issue (as far as i tested) - Logic Pro 9.1.7 32 & 64 bit - OS X 10.6.8

---

<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:** [May 17, 2012, 2:19pm UTC](https://forum.juce.com/t/plugin-wrong-font/11166/13 "2012-05-17T14:19:35Z")

</div>

Are you specifying an actual typeface name for the font? It might just be that you need to make sure that name is still correct now. E.g. you can’t ask for “Arial Regular” any more, because the “Regular” bit is now specified separately in the style name.

---

<div class="post-metadata">

**Author:** ![chkn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/chkn/32/3862_2.png) [@chkn](https://forum.juce.com/u/chkn)\
**Post date:** [May 17, 2012, 2:22pm UTC](https://forum.juce.com/t/plugin-wrong-font/11166/14 "2012-05-17T14:22:40Z")

</div>

I’m using the Audio-Plugin-Demo from the tip, changed nothing.

---

<div class="post-metadata">

**Author:** ![sonic59](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@sonic59](https://forum.juce.com/u/sonic59)\
**Post date:** [May 17, 2012, 5:47pm UTC](https://forum.juce.com/t/plugin-wrong-font/11166/15 "2012-05-17T17:47:11Z")

</div>

> [@](#):
>
> No, seems to be logic only issue

That is very odd. Jules original theory may be correct. Logic Pro may be messing with the graphics context some how. You should try compiling the demo plugin with the CoreGraphics Renderer off to test this. This will tell you if it is a CoreGraphics issue.

I don’t own a copy of Logic Pro so there isn’t any way I can debug the problem. It would be interesting to know if this occurs with Logic Pro and OS X 10.7.

The only thing I can suggest is to step through the changes made to juce\_mac\_Fonts.mm since the beginning of may to try to isolate the actual lines that cause this issue:

> **[History for modules/juce\_graphics/native/juce\_mac\_Fonts.mm - juce-framework/JUCE](https://github.com/juce-framework/JUCE/commits/master/modules/juce_graphics/native/juce_mac_Fonts.mm)**
>
> JUCE is an open-source cross-platform C++ application framework for desktop and mobile applications, including VST, VST3, AU, AUv3, LV2 and AAX audio plug-ins. - History for modules/juce\_graphics/n...

---

<div class="post-metadata">

**Author:** ![chkn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/chkn/32/3862_2.png) [@chkn](https://forum.juce.com/u/chkn)\
**Post date:** [May 22, 2012, 9:06am UTC](https://forum.juce.com/t/plugin-wrong-font/11166/16 "2012-05-22T09:06:09Z")

</div>

update - lasted change does not help (obviously it wasn’t designed to remove this issue)

[quote]The only thing I can suggest is to step through the changes made to juce\_mac\_Fonts.mm since the beginning of may to try to isolate the actual lines that cause this issue:  
[https://github.com/julianstorer/JUCE/co](https://github.com/julianstorer/JUCE/co) … c\_Fonts.mm[/quote]  
It was the inital commit from the first of may which caused the problems - nobody else with Logic who can confirm this issue?

---

<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:** [May 22, 2012, 10:36am UTC](https://forum.juce.com/t/plugin-wrong-font/11166/17 "2012-05-22T10:36:36Z")

</div>

I think I’ve seen this though this wasn’t on my development system (still using 2.0.18) , so I can’t reproduce it atm.  
This was with XCode 3.2.6, Logic (I assume 9) and a Juce tip from last week.

Chris

---

<div class="post-metadata">

**Author:** ![chkn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/chkn/32/3862_2.png) [@chkn](https://forum.juce.com/u/chkn)\
**Post date:** [May 22, 2012, 10:48am UTC](https://forum.juce.com/t/plugin-wrong-font/11166/18 "2012-05-22T10:48:19Z")

</div>

> [@](#):
>
> (still using 2.0.18)

Please try to compile the latest audio-plugin demo, just copy the latest tip in to a temp directory and hit build 🙂

[https://github.com/julianstorer/JUCE/zipball/f401d72b4b2563e622d079595276b1f56bcf2750](https://github.com/julianstorer/JUCE/zipball/f401d72b4b2563e622d079595276b1f56bcf2750)

---

<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:** [May 22, 2012, 11:28am UTC](https://forum.juce.com/t/plugin-wrong-font/11166/19 "2012-05-22T11:28:35Z")

</div>

I don’t have access to the machine it appeared on. I will try on my current system as soon as I’m on OS X again.

Chris

---

<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:** [May 24, 2012, 8:34am UTC](https://forum.juce.com/t/plugin-wrong-font/11166/20 "2012-05-24T08:34:23Z")

</div>

Just tested with Logic 9.1.6 and a tip from this week, same font as in the first post’s screenshot.

Chris

[Next page](https://forum.juce.com/t/plugin-wrong-font/11166.md?page=2)
