Cabbage Logo
Back to Cabbage Site

Different font for UI and Text Editor

Hey Rory — is it possible to designate the text editor its own font separate from the rest of the UI?

I’m going to assume that it’s not, but I don’t see why it can’t be. Give me a sec…

Ok, you can now use typeface() for the texteditor too. If it doesn’t find the font, it will fallback to the one specified with form, and if it doesn’t find that it will fallback to the system font. :+1:

1 Like

Hmm - can’t seem to get this working… Cabbage 2.9.5 OSX

<Cabbage>
form caption("Untitled") size(400, 300), guiMode("queue") pluginId("def1")
texteditor bounds(20, 20, 400, 40) fontSize(16), channel("Console"), scrollbars(1), wrap(1),  fontColour(124, 210, 0), colour(0, 0, 0, 230, 200), typeface("PRNumber3.ttf")

</Cabbage>
<CsoundSynthesizer>
<CsOptions>
-n -d
</CsOptions>
<CsInstruments>
; Initialize the global variables. 
ksmps = 32
nchnls = 2
0dbfs = 1


instr 1


;outs a1*kGain, a2*kGain
endin

</CsInstruments>
<CsScore>
;causes Csound to run for about 7000 years...
f0 z
;starts instrument 1 and runs it for a week
i1 0 [60*60*24*7] 
</CsScore>
</CsoundSynthesizer>

Strange, it’s not working for me either with the latest release. I’ll take another look tomorrow :+1:

This should be fixed now :+1: