Sciss/SwingOSC — Issue #7: JFont.asSCFont
Author: Sciss
Created: 2012-01-12 14:09:52+00:00
State: open
Labels: Feature

this has been added recently, probably we need that as well?

+ asSCFont {
+ var cocoa, scfont;
+ cocoa = GUI.get(\cocoa);
+ if(cocoa.notNil) {
+ scfont = cocoa.font.new(name, size);
+ if(bold){scfont = scfont.boldVariant};
+ ^scfont;
+ }{
+ ^nil
+ }
+ }