« Return to Thread: Changing default editor font on Os X

Re: Changing default editor font on Os X

by Jan Trutzschler-2 :: Rate this Message:

Reply to Author | View in Thread

Hi,
help files are *.html files and they are explicitly excluded within  
your initAction. Remove the check for html files and it will change  
all files:

Document.initAction_{|doc| doc.font_(Font("Andale Mono", 12))};

J

On Jul 2, 2008, at 11:27 PM, Patrick Dohman wrote:

>
> On Jun 23, 2008, at 3:06 AM, Stephen Lumenta wrote:
>
>> You could edit your startup.rtf file (~/Application Support/
>> SuperCollider/startup.rtf) .
>
>> // post win font
>> Document.listener.font_(Font("Andale Mono", 10));
>> Document.listener.background_(Color.new255(190,190,190));
>>
>> // use the default font on the help files
>> Document.initAction_({
>> |doc|
>> if(doc.path.notNil,
>> {if("html".matchRegexp(doc.path),
>> {},
>> {doc.font_(Font("Andale Mono", 12))}
>> )},
>> {doc.font_(Font("Andale Mono", 12))}
>> );
>> });
>>
>>
>> Stephen
>
> First I want to say thanks for the tip. Stephen's startup file does  
> a good job of changing the font of the post window and any new  
> windows I create but it does not effect my help files. If I execute  
> the code directly it completes without errors but it does not apply  
> changes to any of the help files which would be great. I tried  
> searching the archives and google with no results and I also tried  
> using the code on two different OS X systems. Any suggestions?
> Peace
> Patrick
>


_______________________________________________
sc-users mailing list


info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/

 « Return to Thread: Changing default editor font on Os X