Plugin (wrong font)

For Apple specific issues

Plugin (wrong font)

Postby chkn » Tue May 15, 2012 5:26 pm

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

jucegui.png
jucegui.png (49.82 KiB) Viewed 1859 times


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
chkn
JUCE UberWeenie
 
Posts: 861
Joined: Thu Mar 08, 2007 6:17 pm

Re: Plugin (wrong font)

Postby jules » Tue May 15, 2012 9:08 pm

Weird.. Is that a music font? I've no idea how it could end up like that!
User avatar
jules
Fearless Leader
 
Posts: 17189
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: Plugin (wrong font)

Postby chkn » Wed May 16, 2012 10:09 am

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

debug1.png
debug1.png (322.73 KiB) Viewed 1824 times
chkn
JUCE UberWeenie
 
Posts: 861
Joined: Thu Mar 08, 2007 6:17 pm

Re: Plugin (wrong font)

Postby jules » Wed May 16, 2012 10:29 am

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!
User avatar
jules
Fearless Leader
 
Posts: 17189
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: Plugin (wrong font)

Postby chkn » Wed May 16, 2012 11:58 am

The behavior is definitly new, didnt't have the problem with juce-tips from the beginning of april.
chkn
JUCE UberWeenie
 
Posts: 861
Joined: Thu Mar 08, 2007 6:17 pm

Re: Plugin (wrong font)

Postby jules » Wed May 16, 2012 5:25 pm

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..
User avatar
jules
Fearless Leader
 
Posts: 17189
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: Plugin (wrong font)

Postby chkn » Wed May 16, 2012 5:34 pm

could you (or someone else) reproduce the issue? Not sure which version i used in april (normally i update the juce source very often)
chkn
JUCE UberWeenie
 
Posts: 861
Joined: Thu Mar 08, 2007 6:17 pm

Re: Plugin (wrong font)

Postby chkn » Wed May 16, 2012 5:35 pm

will try tomorrow to find out since which tip i have this issue
chkn
JUCE UberWeenie
 
Posts: 861
Joined: Thu Mar 08, 2007 6:17 pm

Re: Plugin (wrong font)

Postby jules » Wed May 16, 2012 5:38 pm

Thanks, it'd hopefully be simple to understand if we knew which commit caused it.
User avatar
jules
Fearless Leader
 
Posts: 17189
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: Plugin (wrong font)

Postby TheVinn » Wed May 16, 2012 6:39 pm

jules wrote: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...
Open Source: LayerEffects, VFLib, SimpleDJ, DSP Filters, LuaBridge, JUCE, FreeType, TagLib
"This isn't a big project, it shouldn't take long." - Jules
User avatar
TheVinn
JUCE UberWeenie
 
Posts: 2975
Joined: Sat Aug 29, 2009 11:31 am
Location: Marina del Rey, California

Re: Plugin (wrong font)

Postby sonic59 » Wed May 16, 2012 9:31 pm

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?
sonic59
JUCE UberWeenie
 
Posts: 223
Joined: Tue Mar 09, 2010 5:51 pm

Re: Plugin (wrong font)

Postby chkn » Thu May 17, 2012 3:05 pm

yes sonic, this commit is causing the issue:

https://github.com/julianstorer/JUCE/co ... 1f82fa6134

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
chkn
JUCE UberWeenie
 
Posts: 861
Joined: Thu Mar 08, 2007 6:17 pm

Re: Plugin (wrong font)

Postby jules » Thu May 17, 2012 3:19 pm

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.
User avatar
jules
Fearless Leader
 
Posts: 17189
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: Plugin (wrong font)

Postby chkn » Thu May 17, 2012 3:22 pm

I'm using the Audio-Plugin-Demo from the tip, changed nothing.
chkn
JUCE UberWeenie
 
Posts: 861
Joined: Thu Mar 08, 2007 6:17 pm

Re: Plugin (wrong font)

Postby sonic59 » Thu May 17, 2012 6:47 pm

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:
https://github.com/julianstorer/JUCE/co ... c_Fonts.mm
sonic59
JUCE UberWeenie
 
Posts: 223
Joined: Tue Mar 09, 2010 5:51 pm

Next

Return to MacOSX and iOS

Who is online

Users browsing this forum: Bing [Bot] and 1 guest