frederik

Forum Replies Created

Viewing 15 posts - 166 through 180 (of 531 total)
  • Author
    Posts
  • in reply to: Add an anchor #5752

    frederik
    Keymaster

    As measurements are a UI related attribute, it is not added to the robofab-like guide object.

    However you can change the display of measurements of a guide with:

    glyph = CurrentGlyph()
    
    guide = glyph.addGuide((100, 100), 90, "my guide")
    guide.naked().showMeasurements = True
    

    to remove all guides you can also use glyph.clearGuides()

    good luck!

    in reply to: Retain glyph order after renaming glyphs #5750

    frederik
    Keymaster

    You can drag and drop a glyph selection to change the order. The drag starts after 0.4 of a sec, to prevent accidentally reordering of glyphs.

    You can also set a glyph order with a script:

    font = CurrentFont()
    # this is a list of glyph names
    font.glyphOrder = ["a", "agrave", "b", "c"] 
    

    if you changed the glyph order (manually or script) the sorting is disabled.

    There is no glyph index in the UFO data, but each glyph has an glyph.index returning the index related to the glyph order. Please take note that the glyph order in the final font can be different if you don’t added .notdef or enabled “Use MacRoman as the start of the glyph order” while compiling.

    Adding or removing glyphs will always alter the glyph order. It is depending on your settings where new glyphs would be added (at the end or somewhere in a sorted position)

    Good luck

    in reply to: Retain glyph order after renaming glyphs #5746

    frederik
    Keymaster

    What the “Sort Glyphs” checkbox does is performing a sort after the glyph is being added, if unchecked added glyphs will just be appended at the end.

    In the next update RF will remember which checkbox you have enabled….

    thanks

    in reply to: Converting ttf splines to otf splines #5745

    frederik
    Keymaster

    RoboFont pops up a cubic < -> quad conversion warning whenever a UFO has mixed curves. It measures the amount of cubic segment and quad segments and propose the biggest number as default action to convert the whole font. RoboFont doesn’t allow mixed curves in a single UFO.

    The spline conversion option in the preferences are only used while generating a binary font.

    converting curve descriptions can be done with a script (please save you font first!)

    from lib.tools.bezierTools import curveConverter
    
    font = CurrentFont()
    
    coreFont = font.naked()
    
    for glyph in coreFont:
        # convert from cubic to quad
        curveConverter.bezier2quadratic(glyph)
        
        # convert from quad to cubic
        # curveConverter.quadratic2bezier(glyph)
        
    coreFont.segmentType = glyph.segmentType
    
    print "done"
    

    good luck

    in reply to: Retain glyph order after renaming glyphs #5742

    frederik
    Keymaster

    Adding a glyph will change the glyph order, cause the new glyph will also be added to the glyph order.

    If you have a completely different glyph order, you have the elaborate it a bit more.

    thanks!

    in reply to: DrawBot versus TinyDrawBot #5741

    frederik
    Keymaster

    Hi

    there already an official DrawBot extension but it needs a RF beta. The next update is required to get DrawBot inside RoboFont working. TinyDrawBot will be deprecated and removed form the git repo.

    The extension will support everything DrawBot has, as it is really the same code :)
    But it has some benefits of using all the RoboFont functionality.

    thanks

    in reply to: Add an anchor #5733

    frederik
    Keymaster
    g = CurrentGlyph()
    
    g.appendAnchor("name", (100, 100))
    

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

    good luck

    in reply to: optionally specify locations of afdko, ttfautohint in prefs #5730

    frederik
    Keymaster

    It is indeed recommended for FDK to be installed on a specific path.

    For ttfautohint RoboFont is checking it with which ttfautohint terminal command to see if it installed on your local machine. In a normal setup it should be something like /usr/local/bin/ttfautohint
    Next to be installed ttfautohint requires an ‘o’ glyph in the font otherwise it just fails to autohint. (see ttfautohint -h)

    hope this helps.

    in reply to: Output window and stopping script executing #5729

    frederik
    Keymaster

    Stopping a script is more difficult that it sounds like… but it is still on the todo list :)

    in reply to: Unicode ranges in smart sets need to be decimal, not hex #5728

    frederik
    Keymaster

    Inside a glyph in UFO the unicode value is stored as decimal number. The search happens on that data. The value you see is just a representation of that value.

    Will see what I can do about that….

    in reply to: glyph name syntax #5721

    frederik
    Keymaster

    Hi Mathieu

    it doesn’t really matter, just make a system that makes it easy for you to search and find subsets by suffixes.

    in reply to: Round kerning bug #5718

    frederik
    Keymaster

    oh

    thanks, will be fixed in the next version

    in reply to: draw in output window #5716

    frederik
    Keymaster

    Yes that is possible only you have to tell a glyphview to redraw it self

    Use UpdateCurrentGlyphView() ad off course subscribe to the draw notification
    See http://doc.robofont.com/api/mojo/mojo-ui/

    (Will fix the oldstyle notification)

    in reply to: Measuring options gone #5713

    frederik
    Keymaster

    It moved to a more logical place: the display options in the bottom left of your glyph window.

    in reply to: Lock Image behavior #5710

    frederik
    Keymaster

    This is a known issue and will be solved in the next update.

    The next update will deselect the image when “Lock Image” is enabled.

    thanks

Viewing 15 posts - 166 through 180 (of 531 total)