MultiLineView padding

RoboFont Forums Help / General MultiLineView padding

This topic contains 5 replies, has 3 voices, and was last updated by  Jeremie 5 years, 10 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #6042

    nina
    Participant

    Hi,

    It appears that a MultiLineView object has some kind of default padding on the top and left (margin between where the white background starts and where any text starts to be displayed). Is it possible to change/set this programmatically when making a MultiLineView object? I tried using the FrameAdjustments but I’m not sure that’s the best/intended way.

    Thanks!
    Nina

    #6045

    frederik
    Keymaster

    He Nina

    you could hack around it…. (maybe I have to implement a friendly way :)

    glyphLineView.contentView()._buffer = 20 # default is 15
    glyphLineView.contentView().refresh()
    
    #6049

    nina
    Participant

    Does what I need. :) Thankyou!

    #6050

    Jeremie
    Member

    Interesting…
    Is there a similar hack for mojo.glyphPreview() ? There is clipping occurring at the top for accented glyphs such as /Aring
    It seems there is no attribute refresh() for mojo.glyphPreview

    #6053

    frederik
    Keymaster

    yeah, you can use the same hack

    glyphPreview.getNSView()._buffer = 40
    glyphPreview.getNSView().refresh()
    

    Ive added a better and friendlier API on my todo list :)

    #6057

    Jeremie
    Member

    thanks!

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

You must be logged in to reply to this topic.