guide.y accepts no new value

RoboFont Forums Bugs guide.y accepts no new value

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  Thom 6 years, 8 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5789

    Thom
    Participant

    Hi,

    scaleFactor = .512
    for g in f:
    	if g.selected:
    		for guide in g.guides:
    			
    			print guide.coordinate
    			
    			guide.x = guide.x * scaleFactor
    			guide.y = guide.y * scaleFactor
    			
    			print guide.coordinate
    

    output:

    (197, 432)
    (100.864, 432)
    (444, 635)
    (227.328, 635)

    Everything works except the y coordinate.

    Cheers, Thom

    #5790

    frederik
    Keymaster

    oh oeps, typo, good catch
    will be fixed in the next update…

    #5791

    Thom
    Participant

    Merci :-)

    #5792

    Thom
    Participant

    follow up:

    Also if you scale the blues in the font by a factor the value become

    <real>

    in the fontinfo instead of

    <integer>

    .
    Now you can not edit them in the fontinfo window anymore…

    So be sure to

    int(here_a_blue_value)
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.