frederik

Forum Replies Created

Viewing 15 posts - 136 through 150 (of 531 total)
  • Author
    Posts
  • in reply to: Font Collection Custom Tool #5857

    frederik
    Keymaster

    He

    Ive written a proper vanilla patch which is already in the vanilla repo. This will be in the next update of RoboFont.

    It adds addToolBarItem and removeToolbarItem to a vanilla window object, able to manage toolbar items properly.

    see https://github.com/typesupply/vanilla/blob/master/Lib/vanilla/vanillaWindows.py#L631

    in reply to: Bitmap error #5855

    frederik
    Keymaster

    oh, cool bug, will look into this issue :)

    in reply to: GlyphLineView #5854

    frederik
    Keymaster

    Space center is a multi line view, add “\n” in you input string and a new line is being added

    good luck!

    in reply to: outline error #5847

    frederik
    Keymaster

    those blue line appear according to your settings: see the “outline error” value. If the next point is “outline error”-amount off then the blue line appears. I guess those coordinates are just a bit off :)

    good luck

    in reply to: kern table #5842

    frederik
    Keymaster

    Hi

    saving a fontTools object into the same file path is not a good plan. FontTools read the file only when it is required to read them, this is causing the error. Save to a temp file and replace it when you are done. This is safer as you can eliminate possible saving errors.

    For now the event “fontDidGenerate” is only send when using the generate from the menu. I didn’t made up my mind if this should be called when a font is generated programmatically, as a script already knows when a font is being generated and the script is able to do some post-processing of the fonts.

    thanks

    in reply to: TrueType curves #5840

    frederik
    Keymaster

    A reconstructing pen I wrote a while ago https://gist.github.com/typemytype/10011318

    you can idd wait for RoboHint or add them with fontTools yourself, both are really a good way to spend the night :)

    in reply to: Vanilla/Defcon Browser? #5834

    frederik
    Keymaster

    Use vanilla.dialogs to get file paths to open or save.
    see https://github.com/typesupply/vanilla/blob/master/Lib/vanilla/dialogs.py

    or when your window controller is a subclass of an defconAppKit BaseWindowController use showGetFolder, showGetFile
    see https://github.com/typesupply/defconAppKit/blob/master/Lib/defconAppKit/windows/baseWindow.py

    good luck

    in reply to: TrueType curves #5830

    frederik
    Keymaster

    RoboFont supports true type splines with 2 off curves (there are some historical reasons)

    This means every .ttf opened with RoboFont will have additional points. You can remove them while generating the font cause all those points are labeled.

    Can you write true type instructions and hinting programs?

    in reply to: kern table #5829

    frederik
    Keymaster

    He Jeremie

    you could do some post processing when a font is generated and add a kern table to the font whenever a font is being generated.

    There is a notification event “fontDidGenerate” you could subscribe to

    good luck

    in reply to: Vanilla TextBox .set() #5825

    frederik
    Keymaster

    source code is the best documentation :)

    otherwise use:

    from defconAppKit.windows.baseWindow import BaseWindowController
    from defconAppKit.windows.progressWindow import ProgressWindow
    
    help(BaseWindowController)
    help(ProgressWindow)
    
    in reply to: Assign Font Layer #5823

    frederik
    Keymaster

    cool, thanks

    also check out Gustavo’s hTools2 http://hipertipo.org/temp/hTools2/_html/

    there are some layers scripts available there

    good luck

    in reply to: Clearing Glyph #5822

    frederik
    Keymaster

    an alternative option to get docs:

    f = CurrentFont()
    
    help(f)
    

    (this works for any object)

    in reply to: Vanilla TextBox .set() #5820

    frederik
    Keymaster

    Cocoa is rather smart in updating views and this is a good example: it prevents the update while there is something else running.

    You could force to update the view but maybe a better way is to use the defconAppKit base window and use the a progress from there.

    from defconAppKit.windows.baseWindow import BaseWindowController
    from vanilla import *
    
    from time import sleep
    
    class Test(BaseWindowController):
        
        def __init__(self):
            
            self.w = Window((200, 40))
            self.w.b = Button((10, 10, -10, 22), "Push", callback=self.buttonCallback)
            self.w.open()
            
        def buttonCallback(self, sender):
            progress = self.startProgress("Doing it...")
            
            for v in ["he", "I'm", "almost", "done"]:
                progress.update(v)
                sleep(0.5)
            
            progress.close()
    
    Test()
    

    good luck

    in reply to: Assign Font Layer #5815

    frederik
    Keymaster

    there is a flip-swap-copy layers pop up window, see the preferences hot keys to assign a key to it

    see http://doc.robofont.com/documentation/workspace/preferences/glyph-view/

    good luck

    in reply to: Clearing Glyph #5812

    frederik
    Keymaster

    also see the robofab docs

    http://www.robofab.org/objects/glyph.html

    and the super handy object map

    http://www.robofab.org/objects/model.html

    good luck

Viewing 15 posts - 136 through 150 (of 531 total)