Cabbage Logo
Back to Cabbage Site

Exported plugin in Logic with some appearance issues

I exported my plugin as an AU for Logic and a few issues cropped up:

  • The font I used isn’t applied. Does the font file need to be in a particular directory relative to the exported plug-in?
  • Initially invisible windows never display.

For the second, this is the sort of thing that I’m doing:

kFeedback_window_button, kTrig_feedback_window_button cabbageGetValue "feedback_window_button"
cabbageSet kTrig_feedback_window_button, "feedback_window", sprintfk("visible(%d)", kFeedback_window_button)

Thank you!

It should be in the same directory as the .csd file, but I think Logic sandboxes its plugin, which might be causing the issue. Does it run in other hosts?

Can you try with the latest beta build from yesterday?

The font is in the same directory as the component file. I’m including the typeface like this:

typeface("./OpenSans-Regular.ttf")

Also tried:

typeface("OpenSans-Regular.ttf")

I tried the most recent build (2.9.229) and the visible issue is still there in Logic. If a groupbox is initially hidden, I cannot make it appear.

I just tried it in Reaper. The font does not show up, but the groupbox visibility issue is fine.

Thank you!

One thing to keep in mind with Logic is the fact that Csound doesn’t run unless there is audio being processed. Could this be the issue here I wonder?

I will try to test the font issue when I can. I’m a little behind with things at the moment, too busy enjoying my holidays :rofl:

I just tried exporting a plugin as an AU, with a custom font, and it worked fine for me? Here is where I put the font file:

image

Here is the the font file I tested with.
courier_bold.ttf (31.6 KB)

Can you try with this font and see if it works?

Font shows up fine in Cabbage, does not show up in Logic. Here is how I’m including it:

form caption(“loobt_full”) size(1400, 800), guiMode(“queue”) pluginId(“MTRX”) colour(39, 62, 85, 255) typeface(“courier_bold.ttf”)

The font is in the same folder as my .csd file. Does it also need to be in the same directory as the exported plug-in component file?

And you’re right about how the GUI behaves in Logic. Since I’m using Csound to control the visibility, I guess I have to enable audio (record enable or enable input monitoring) before I can use the invisible windows. That’s workable, but will be confusing to new users. I’ll document it.

It should go into the plugin .component file beside the CSD file. It worked fine for me earlier.

Yeah it is a pain how logic does this. I think Cubase might too. I must look to see if there is a way it can be addressed in Cabbage 3.

I have no idea what I’m doing wrong. Font is in the directory with my .csd file (i.e., where Cabbage opens it from) and in the component directory (i.e., where Logic loads my plugins: user/Library/Audio/Plug-Ins/Components).

Top pic is Cabbage, bottom is Logic.

It needs to be in the .component bundle. Right click and open the component folder, then open the contents directory within and add the font file. Your folder structure should look like what I posted earlier :+1:

I feel like I’m on the verge of understanding this.

Maybe I don’t understand what loobt.component is. I thought it was a binary file, but maybe it is a directory?

And if I add this font file to a bundle() statement, is that all I need?

That should do the trick, although I haven’t tested it in a while.

Correct, it’s just a directory. When you export a plugin with Cabbage it will bundle the .csd file into the plugin bundle, at least on MacOS at least.

1 Like

Got it working! Thank you!

form caption("loobt_full") size(1400, 800), guiMode("queue") pluginId("MTRX") colour(39, 62, 85, 255) typeface("OpenSans-Regular.ttf") bundle("OpenSans-Regular.ttf")

Feature request: automatically bundle the typeface file. :slight_smile:

Yeah, that’s not a bad idea. :slight_smile: