Re: [racket-users] setting default font face and size for a text%

2015-10-13 Thread David T. Pierson
On Mon, Oct 12, 2015 at 09:08:45AM -0500, Robby Findler wrote: > That will work for newly typed text. Other code might changed the style and > copying and pasting styled text may change it. You can use after-insert to > change the style for those cases. Or maybe you want to allow that. OK thanks.

Re: [racket-users] setting default font face and size for a text%

2015-10-12 Thread Robby Findler
That will work for newly typed text. Other code might changed the style and copying and pasting styled text may change it. You can use after-insert to change the style for those cases. Or maybe you want to allow that. There is also, in the framework, editor:standard-style-list which uses a global

[racket-users] setting default font face and size for a text%

2015-10-12 Thread David T. Pierson
I have a text% instance for which I want to optionally set the default style (font face and size). I want it to persist even if all text within the editor is erased. (My first attempt using the change-style method failed this requirement.) I've come up with the following, but is this the simples