Space matrix values body size

RoboFont Forums Help / General Space matrix values body size

This topic contains 4 replies, has 2 voices, and was last updated by  Roberto Arista 5 years, 10 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #6041

    Roberto Arista
    Participant

    Hi!
    Is it possible, someway, to change the body size of the space matrix values in the Space Center?
    I am not afraid of coding, but an advice to start could be useful.

    Thanks

    #6046

    frederik
    Keymaster

    Hi

    you mean change the point size of the text used to display the matrix view?

    from AppKit import *
    from mojo.UI import CurrentSpaceCenter
    
    
    sp = CurrentSpaceCenter()
    
    font = NSFont.systemFontOfSize_(20)
    
    sp.inputScrollView.contentView().attributes[NSFontAttributeName] = font
    # tiny hack
    sp.inputScrollView.contentView()._input.setFont_(font)
    

    but don’t expect this will look nicer :)

    #6047

    Roberto Arista
    Participant

    Super hack :)

    Maybe I was too specific, but thanks for the help.

    However I should access to the other matrix settings, like cells padding and so on.
    Is it possible? Is there a way to access the components of the standard space window?

    #6054

    frederik
    Keymaster

    the contentView() has also cellWidth and cellSpacing

    If you change those you will have to change the frame of the view and the size of the split view above

    good luck!

    #6058

    Roberto Arista
    Participant

    Thanks!

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.