joanca

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • in reply to: Remove hinting in an ufo? #6217

    joanca
    Participant

    thanks frederik and jens, good enough. cheers!

    in reply to: Remove hinting in an ufo? #6210

    joanca
    Participant

    I exactly meant that, I want to remove the hinting data stored by vfb2ufo. I had some error when generating the fonts outside RoboFont. I’ve to check with Robofab lib (Nonelab).

    in reply to: FontDidClose event #5693

    joanca
    Participant

    Yes, that will work. Thanks!

    in reply to: FontDidClose event #5691

    joanca
    Participant

    Well, the thing is that I wanted to update in a vanilla popUpButton AllFonts when a font did close. If I do it with fontWillClose the font is still there.
    I just found it in the docs and seemed useful for what I wanted. I’ll find another approach then. Thanks


    joanca
    Participant

    Thanks Frederik, but no luck :)
    I got the spaceCenterDraw notification. I’ve been trying but I didn’t managed to get what I want.

    Do you mean draw each layer on top of the ‘foreground’ layer? Can I change the color of the glyph for each layer when drawing and have overlapping colors and that will be reflected in the spaceCenter? Do I need to do this in the spaceCenter?
    I’d like to overlap glyph layers (or glyphs from different fonts) as in the Stacked Groups in a Line or MultiLineView (or groups in MM), being able to select color for each layer and background. I can access to glyphColor and backGround color in GlyphLineView but not in MultiLineView.

    Any further clue of objects to check/access? I’m a bit lost now.

    Thanks — [actually brainboiled]


    joanca
    Participant

    Probably this will work for you:

    # -*- coding: utf-8 -*-
    
    from fontTools import agl
    
    txt = u"Àü"
    
    for c in txt:
        gname = agl.UV2AGL[ord(c)]
        uni = agl.AGL2UV[gname]
        print gname, uni
    
    in reply to: Create checkboxes with loop? #5572

    joanca
    Participant

    Probably there’s a better way of doing this, but at least, in the meantime, this works:
    ) sorry I don’t know how to format code properly in the forum :(

    
    from vanilla import *
     
    class checkboxWindow:
        
        def __init__(self):
            
            self.w = Window((400,400), 'SetOrganizer')
            
            for n in range(5):
            
                exec("self.w.checkBox%s = CheckBox((10, 10 + (25*n+1), -10, -10), 'Label', callback=self.checkBoxCallback, value=True)" % (n))
            
            self.w.open()
        
        def checkBoxCallback(self, sender):
            print sender.get(), sender.getTitle()
     
    checkboxWindow()
    
    in reply to: AccordionView update CurrentFont #5492

    joanca
    Participant

    Sounds a good idea, thanks : )

    in reply to: AccordionView update CurrentFont #5486

    joanca
    Participant

    I’ve some slider making some transformations to f.selection, if I change the front font and the slider keeps transforming the previous font. So I need the slider to know which is the CurrentFont.
    Using a Window works, I prefered the floating if it would be possible. Thanks.

    in reply to: AccordionView, storing groups in separate modules #5453

    joanca
    Participant

    Still not working with the launcher code :(
    Sorry for worst formatting ever.

    from mojo.UI import AccordionView
    from vanilla import *
    from storegroup import aGroup
    
    class launcher:
    
        def __init__(self):
    
            self.w = FloatingWindow((200, 600), title='accordionView')
    
            self.agroup = aGroup()
    
            descriptions = [
                dict(label="aGroup", view=self.agroup, size=117, collapsed=False, canResize=False)
            ]
    
            self.w.accordionView = AccordionView((0, 0, -0, -0), descriptions)
    
            self.w.open()
    
    
    launcher()
    

    BTW, is there a guide somewhere to correctly format in posts?

    in reply to: Create a font object but not open #5203

    joanca
    Participant

    Ok, we’ll wait then. Other formats, as html itself would work too in the meantime.
    Thanks!

    in reply to: Create a font object but not open #5173

    joanca
    Participant

    Thanks for the tip, Frederik.
    That made everything smooth, as doing it outside RF, same performance, better access to dialogs : )
    BTW, Is there any chance to get the RoboFont documentation for reading offline?

    in reply to: Can't install robofont shell command #4667

    joanca
    Participant

    Thanks Frederik, that was it.
    BTW, is there any special recommendation for storing the RoboFont application in the Apps folder?
    I currently have all my type related applications in a folder inside my home, called (now : ) “type_apps”
    Better move the whole folder to the Apps folder. Doesn’t matter? Any inside trick?
    Thanks!

    in reply to: removeOverlap Error #4298

    joanca
    Participant

    I don’t know why but the xml code disappears. So i attached a file.
    I could reproduce the error in another glyph, so the ValueError for this glyph is:
    File “/Users/joanca/type apps/RoboFont.app/Contents/Resources/lib/python2.7/defcon/tools/booleanOperations/flatten.py”, line 746, in reCurveSubSegments
    ValueError: (44762500, 45687500) is not in list

    Thanks

    Attachments:
    You must be logged in to view attached files.
    in reply to: Move glyph vertically in Space Center #4221

    joanca
    Participant

    ‘alt’ sounds great to me : )
    Dank u

Viewing 15 posts - 1 through 15 (of 20 total)