Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Solved
    • Unsolved
    1. Home
    2. Tags
    3. anchors
    Log in to post

    • horashann

      SOLVED How to copy anchors from one font to another
      Extensions • scripting anchors • • horashann  

      2
      0
      Votes
      2
      Posts
      30
      Views

      gferreira

      hello @horashann, yes, this can be done with a simple script: # get source and destination fonts srcFont = AllFonts().getFontsByFamilyName('MyFontFamily').getFontsByStyleName('Regular')[0] dstFont = AllFonts().getFontsByFamilyName('MyFontFamily').getFontsByStyleName('Italic')[0] # iterate over selected glyphs in the source font for glyphName in srcFont.selectedGlyphNames: # get the source glyph srcGlyph = srcFont[glyphName] # if the glyph doesn't have any anchors, skip it if not len(srcGlyph.anchors): continue # get the destination glyph dstGlyph = dstFont[glyphName] # iterate over all anchors in the source glyph for anchor in srcGlyph.anchors: # copy anchor to destination glyph dstGlyph.appendAnchor(anchor.name, (anchor.x, anchor.y)) # done! make sure to replace MyFontFamily and Regular / Italic with the family name and style names of your fonts. cheers!
    • ryan

      SOLVED Dashed-line alignment guide comes from cursor, not nearest selected object
      Problems & Bugs • points anchors alignment mouse • • ryan  

      9
      0
      Votes
      9
      Posts
      522
      Views

      ryan

      @gferreira @frederik Update on this, relevant issue I ran into. Video may explain well why current alignment guide might be misleading. Version 3.4b
    • bahman

      SOLVED Snap anchors to contour points
      Feature Requests • points anchors • • bahman  

      7
      0
      Votes
      7
      Posts
      390
      Views

      bahman

      Thank you very much ( ͡° ͜ʖ ͡°)
    • ryan

      SOLVED Anchor coordinates positioned in the same place as anchor name
      Problems & Bugs • user interface anchors • • ryan  

      2
      0
      Votes
      2
      Posts
      463
      Views

      frederik

      This is fixed in the dev beta. A fresh public beta will appear shortly thanks
    • bahman

      MouseDown Observer detailed info
      General Questions • user interaction observers anchors • • bahman  

      2
      0
      Votes
      2
      Posts
      524
      Views

      frederik

      there is Glyph.selection.Changed notification small example also don't forget to remove the observer when your are done... class SelectionObsever(object): def __init__(self): self.g = CurrentGlyph() self.g.addObserver(self, "selectionChanged", "Glyph.selectionChanged") def selectionChanged(self, notification): glyph = notification.object for anchor in glyph.anchors: print anchor.selected SelectionObsever()
    • qkeave

      Add an anchor
      General Questions • scripting guidelines anchors • • qkeave  

      14
      0
      Votes
      14
      Posts
      1635
      Views

      qkeave

      Thanks!
    • andreas

      SOLVED Anchors
      General Questions • components glyph construction accented glyphs anchors • • andreas  

      5
      0
      Votes
      5
      Posts
      820
      Views

      gferreira

      hi @jhera, there are multiple ways to build accented glyphs in RoboFont. these are described here: Building accented glyphs have you tried using the Glyph Construction extension? in 2019 you don’t really need anchors to position diacritics anymore :) you can still use them (with or without underscore), but you can also use guidelines, variables, vertical metrics attributes, reference positions, etc. have a look at the docs & give it a try!
    • jo

      Anchor behaviour
      Feature Requests • user interaction components anchors • • jo  

      11
      0
      Votes
      11
      Posts
      1352
      Views

      mathieu-christe

      Jo, thanks for the script which I'll use in the meantime. Frederik, thank you for listening and offering a built-in solution.
    • bas

      Anchors visibility
      Feature Requests • user interaction anchors • • bas  

      1
      0
      Votes
      1
      Posts
      414
      Views

      bas

      Would be handy if 'Anchors' become always visible after an anchor has been added. Currently 'Anchors' remain invisible once they are.