# New identifiers

**URL:** <https://forum.cabbageaudio.com/t/new-identifiers/878>\
**Category:** Uncategorized\
**Created:** [3 January 2018 13:37 UTC](https://forum.cabbageaudio.com/t/new-identifiers/878 "2018-01-03T13:37:58Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [3 January 2018 13:37 UTC](https://forum.cabbageaudio.com/t/new-identifiers/878/1 "2018-01-03T13:37:59Z")

</div>

I’ve added two new identifiers.

`typeface("file")`:  
where file is the name of an .otf, or .ttf font file. Note that some font will causes some odd behaviour because of the way they might have been created. you’ll need to experiment somewhat. If the font is not found Cabbage will use a fallback font. This identifier should be used with the form widget and will be applied to all text created in your GUI.

`tofront()`:  
This is a unique identifier in that it is only intended for use with identifier channels. Sending a `tofront()` to a widget’s identchannel from Csound will cause that widget to be brought to the front of the GUI.

I’ll upload new binaries shortly.  
 ![](https://forum.cabbageaudio.com/uploads/default/original/1X/f861c948fdd17d0ba33ab7f0e7a2ceb7c8b23bc0.gif)

---

<div class="post-metadata">

**Author:** ![chronopolis](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/c/c37758/32.png) [@chronopolis](https://forum.cabbageaudio.com/u/chronopolis)\
**Post date:** [3 January 2018 15:05 UTC](https://forum.cabbageaudio.com/t/new-identifiers/878/2 "2018-01-03T15:05:04Z")

</div>

Excellent! can’t wait to try it…😁

---

<div class="post-metadata">

**Author:** ![Karamel1](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/karamel1/32/1680_2.png) [@Karamel1](https://forum.cabbageaudio.com/u/Karamel1)\
**Post date:** [3 January 2018 18:13 UTC](https://forum.cabbageaudio.com/t/new-identifiers/878/3 "2018-01-03T18:13:37Z")

</div>

Thank you! Is it more efficient/fast than hiding all widget and set a `visible(1)` to the wanted one?

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [3 January 2018 18:37 UTC](https://forum.cabbageaudio.com/t/new-identifiers/878/4 "2018-01-03T18:37:29Z")

</div>

Well you only have to call one `tofront()` instead of traversing a load of instruments and using the `visible()` identifier! I should have added this years ago. I’m just uploading new betas now. The Windows one is available, the OSX one is on its way, should be [there](http://cabbageaudio.com/beta/) shortly. There is an example called ToggleToFront.csd in the examples folder.

---

<div class="post-metadata">

**Author:** ![MacroMachines](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/m/58f4c7/32.png) [@MacroMachines](https://forum.cabbageaudio.com/u/MacroMachines)\
**Post date:** [7 September 2018 18:01 UTC](https://forum.cabbageaudio.com/t/new-identifiers/878/5 "2018-09-07T18:01:01Z")

</div>

> [@rorywalsh](#):
>
> typeface(“file”): where file is the name of an .otf, or .ttf font file. Note that some font will causes some odd behaviour because of the way they might have been created. you’ll need to experiment somewhat. If the font is not found Cabbage will use a fallback font. This identifier should be used with the form widget and will be applied to all text created in your GUI.

Im not having any luck with the typeface, I tried a few .ttf and .otf fonts, but not sure if there is anything else I need to do. The font is in the folder with the cabbage file.

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [7 September 2018 21:19 UTC](https://forum.cabbageaudio.com/t/new-identifiers/878/6 "2018-09-07T21:19:34Z")

</div>

Sorry, I had to pull them back again due to some problems they were causing. Now would be a good time for me to revisit them. 👍

---

<div class="post-metadata">

**Author:** ![t\_grey](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/t_grey/32/1234_2.png) [@t\_grey](https://forum.cabbageaudio.com/u/t_grey)\
**Post date:** [5 March 2019 02:28 UTC](https://forum.cabbageaudio.com/t/new-identifiers/878/7 "2019-03-05T02:28:19Z")

</div>

I don’t know why I didn’t think to request this earlier… I think it could be very useful! Would/should it be possible for tofront() to work with widgets commonly used as containers, such as groupbox and image?

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [5 March 2019 10:13 UTC](https://forum.cabbageaudio.com/t/new-identifiers/878/8 "2019-03-05T10:13:07Z")

</div>

That’s the idea. Although I’ve not actually tried it out really since I added it.

---

<div class="post-metadata">

**Author:** ![t\_grey](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/t_grey/32/1234_2.png) [@t\_grey](https://forum.cabbageaudio.com/u/t_grey)\
**Post date:** [5 March 2019 17:43 UTC](https://forum.cabbageaudio.com/t/new-identifiers/878/9 "2019-03-05T17:43:45Z")

</div>

I tried using tofront() with some images used as a container for other widgets with no luck… but it was in a fairly complex instrument, so it could easily be a mistake on my part. I’ll try to trim down to a pure example/test scenario and see if I have better luck there later today.

---

<div class="post-metadata">

**Author:** ![Slappz](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/s/c37758/32.png) [@Slappz](https://forum.cabbageaudio.com/u/Slappz)\
**Post date:** [6 March 2019 13:45 UTC](https://forum.cabbageaudio.com/t/new-identifiers/878/10 "2019-03-06T13:45:02Z")

</div>

The Toggle to Front example doesn’t work on the released version, but it does on the most recent build. I’m on windows 10.

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [6 March 2019 14:43 UTC](https://forum.cabbageaudio.com/t/new-identifiers/878/11 "2019-03-06T14:43:35Z")

</div>

That’s about right. I really need to make a new public release…

---

<div class="post-metadata">

**Author:** ![t\_grey](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/t_grey/32/1234_2.png) [@t\_grey](https://forum.cabbageaudio.com/u/t_grey)\
**Post date:** [7 March 2019 19:59 UTC](https://forum.cabbageaudio.com/t/new-identifiers/878/12 "2019-03-07T19:59:06Z")

</div>

Just checking back in, with the newest (Dec.20) OSX beta tofront() works on images (specifically being used as containers). It was probably just a stale build presenting the problem.

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [7 March 2019 21:27 UTC](https://forum.cabbageaudio.com/t/new-identifiers/878/13 "2019-03-07T21:27:48Z")

</div>

I’ll try to get you a new build for OSX soon so you can check it out. I’m trying desperately hard to get new official release out. I don’t want people to think development has ceased on the project!
