0

roTextWidget clips text



A very simple script to show the issue: 1 Sub Main() mode = CreateObject("roVideoMode") mode.SetMode("1280x720x60p") EnableZoneSupport(true) labelSettings = { LineCount: 1, TextMode: 2, PauseTime: 0, Rotation: 0, Alignment: 1 } rL1 = CreateObject("roRectangle", 0, 0, 213, 144) tL1 = CreateObject("roTextWidget", rL1, 1, 2, labelSettings) tL1.PushString("CCS") tL1.Show() while(true) end while End Sub [/code] The screen will only show "CC", clipping the last character. There isn't any font size control I can find - it's supposed to be "magic" from the rectangle and the number of lines. The magic isn't working.

4 comments

  • 0
    Avatar
    RokuLyndon


    You'll need to increase the # of lines to make the text smaller. Even if there's only one line of text or one character, the larger the # of lines, the smaller the text will be. There limited text controls on the current brightsign.
  • 0
    Avatar
    vinull


    Will I need to change both line values?  The call and the array both have a number of lines setting - seems redundant in the API.
  • 0
    Avatar
    RokuLyndon


    You should only need to change the line number in the array. Yes, it is redundant.
  • 0
    Avatar
    vinull


    I have added an additional line, and the font size has dropped (more than I would want, but I guess there isn't anything I can do about that).  The problem is now the text is not vertically centered within the zone.  How can I fix this?
Please sign in to leave a comment.