Scripting font and font size


    May 07 2007 | 1:50 pm
    Hello,
    Is it possible to set (and change) font and font size of objects like comment and ubumenu using thispatcher or (preferably) js? Looking at text versions of patchers, it appears that there's a many-digits number at the end of the comment description which determines the font settings. Is there a way to code and decode this number in a predictable way, so I can set any font and any size? Or an other, more straightforward way?
    Dag Henning

    • May 07 2007 | 3:24 pm
      I tried out a couple things, seems to me that when you leave out:
      Max Patcher
      In Max, select New From Clipboard.
      but do do paste this:
      Max Patcher
      In Max, select New From Clipboard.
      that font sizes do work. the last two digits - 8 gives the font size. scripting works:
      Max Patcher
      In Max, select New From Clipboard.
      I haven't found out anything about font faces tho. They influence the magic number greatly, but I don't know in what way.
    • May 07 2007 | 5:52 pm
      I think the magic numbers also refer to entire font sets, as going up one will increase the font size through a number of sizes, then switch to the next font in the list. As far as a map, that would take some time...
      -CJ
    • May 08 2007 | 9:09 am