Navigation

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

    General Questions

    • ddaanniiieeelll

      SOLVED Resolve merge conflicts
      ufo git • • ddaanniiieeelll  

      6
      0
      Votes
      6
      Posts
      43
      Views

      ddaanniiieeelll

      I tried to ignore the contents.plist for commits, but that resulted in a lot of RF crashes (in hindsight actually expected behaviour since in future pulls there is just no contents.plist and the UFO’s are corrupted). The .glif files however inside the UFO don't produce merge conflicts. So I’m now just resolving merge conflicts by just accepting one version (doesn't matter which one) and then rebuild the contents.plist with your script. So, thanks again!
    • martin

      SOLVED GlyphConstruction as script: x = a&\b gives traceback if no kerning pair is present
      kerning glyph construction • • martin  

      2
      0
      Votes
      2
      Posts
      28
      Views

      frederik

      should be fixed here: https://github.com/typemytype/GlyphConstruction/commit/01c7c9362561822a68073305c69c9fbc054ddf13 Getting kerning is advised to use font.kerning.get(pair) where it does not fail. This is similar to a normal dict. Or you can also check first if pair in font.kerning: ... thanks!
    • connor

      SOLVED Window without title bar?
      user interface vanilla • • connor  

      5
      0
      Votes
      5
      Posts
      34
      Views

      connor

      Thanks a ton for the resource, Frederik! Looks like my tool window is now going to be a landscape image;)
    • RafaŁ Buchner

      UNSOLVED how to add custom button to the SpaceCenter’s display menu ?
      user interface space center • • RafaŁ Buchner  

      4
      0
      Votes
      4
      Posts
      29
      Views

      RafaŁ Buchner

      @frederik said in how to add custom button to the SpaceCenter's display menu ?: for now this is not possible... Space center menus are on the restructuring table. To split up into a menu for display options and a menu for typographic options. I can imagine adding a similar notification like in a glyph window or font overview So I imagine that it is also not possible for the right-click menu in SpaceCenter? this button, on top of the SC, for now, should be enough. Thanks!
    • connor

      SOLVED inspectorWindowWillShowDescriptions?
      observers inspector • • connor  

      6
      0
      Votes
      6
      Posts
      34
      Views

      connor

      Oh my, I really did overthink the issue — reorganizing my functions just a little and adding the self.updateFont(None) solved it!! Thanks for the help, Gustavo!
    • RafaŁ Buchner

      SOLVED Does ‘Exclude during export’ affects Opentype features?
      font generation opentype features ufo3 • • RafaŁ Buchner  

      3
      1
      Votes
      3
      Posts
      29
      Views

      RafaŁ Buchner

      Thanks for the info.
    • ro-hernandezz

      SOLVED Constrain to angles other than 0, 90, 45.
      contours editing tools italics • • ro-hernandezz  

      7
      0
      Votes
      7
      Posts
      253
      Views

      frederik

      Its indeed similar to a pen. This allows easy subclassing of internal tools by simply adding behaviour to a tool. This tool is subclassing _mouseDragged as it needs the same behaviour but with the shift constrain disabled, as this tool will perform his own shift behaviour.
    • colinmford

      UNSOLVED Observe “Update Menu”
      user interface observers • • colinmford  

      5
      0
      Votes
      5
      Posts
      72
      Views

      colinmford

      @frederik Thanks!!
    • naorem

      SOLVED Copy/paste glyphs from UFO to another
      • naorem  

      5
      0
      Votes
      5
      Posts
      32
      Views

      frederik

      a pull request to https://github.com/Typefounding/copyGlyphs is made FYI: the bug was that keys of a dictionary are not a list anymore... so they cannot be sorted see https://github.com/Typefounding/copyGlyphs/pull/3
    • ryan

      SOLVED How do I programmatically “Apply” changes to Preferences?
      preferences python • • ryan  

      5
      0
      Votes
      5
      Posts
      50
      Views

      ryan

      @frederik @gferreira Ah thanks, guys! I was trying to do it in lib and not mojo 🤦‍♂️
    • ryan

      SOLVED Recover programmatically wiped Input Samples?
      scripting space center preferences • • ryan  

      3
      0
      Votes
      3
      Posts
      30
      Views

      ryan

      Lifesaver! Thanks @frederik
    • RafaŁ Buchner

      UNSOLVED How to get programmatically highlighted glyph in the space center
      scripting space center • • RafaŁ Buchner  

      4
      0
      Votes
      4
      Posts
      48
      Views

      frederik

      maybe you have to explain what you want to achieve... A space center object has getRaw which returns the input text as seen in the control and get which returns a list of glyph names, those are parsed from the input controls.
    • RicardGarcia

      UNSOLVED Right bounds (rtbd) feature
      opentype features • • RicardGarcia  

      2
      0
      Votes
      2
      Posts
      41
      Views

      frederik

      its been described here https://docs.microsoft.com/en-us/typography/opentype/spec/features_ko#lfbd You can use pos in an feature to position a character or a pair (like kerning) or even contextual move characters around.
    • RafaŁ Buchner

      SOLVED a way to access “skipExportGlyphs” list in the RFont object
      ufo3 • • RafaŁ Buchner  

      3
      0
      Votes
      3
      Posts
      25
      Views

      RafaŁ Buchner

      Thanks @gferreira!
    • okaytype

      UNSOLVED AccordionView .get() collapsed ?
      preferences accordion view • • okaytype  

      3
      0
      Votes
      3
      Posts
      52
      Views

      frederik

      similar as to vanilla SplitViews an AccordionView will get: anAccordionView.isPaneVisible(label) anAccordionView.showPane(label, animate=True) anAccordionView.togglePane(label, animate=True)
    • colinmford

      SOLVED Get a Glyph’s path?
      fontparts ufolib gliflib • • colinmford  

      5
      0
      Votes
      5
      Posts
      80
      Views

      colinmford

      Thanks, @frederik!
    • ryan

      SOLVED Recreate native Glyph inspector panel sidebearing EditText input
      user interface vanilla • • ryan  

      6
      1
      Votes
      6
      Posts
      90
      Views

      frederik

      That is True! for now the inspector is made for inspecting single glyphs. An extension can add a inspector pan with this behaviour!
    • ryan

      UNSOLVED Are programmed undos able to work across layers?
      layers undo • • ryan  

      4
      0
      Votes
      4
      Posts
      54
      Views

      frederik

      For maximum flexibility each glyph has his own undo manager. You dont want to use a single undo manager for everything. I understand in this case a single cmd-Z should perform actions in multiple glyphs. A while ago Ive made dirty hack... let me see if I can clean it up.
    • JustJoeDesign

      SOLVED RF 1.8 Test Install Error on Catalina
      font generation test install • • JustJoeDesign  

      5
      0
      Votes
      5
      Posts
      86
      Views

      frankrolf

      @JustJoeDesign That said, it’s not impossible to use UFO2 files + makeotf on Catalina. install the AFDKO command line tools via pip https://pypi.org/project/afdko/ build your OTF file using makeotf -f my_font.ufo The only hard requirement is that the UFO has a PostScript name. (Font → Font Info → PostScript → FontName)
    • bahman

      SOLVED get nspath representation
      defcon representations • • bahman  

      3
      0
      Votes
      3
      Posts
      36
      Views

      gferreira

      hello @bahman, representations are handled by defcon, the docs are here. glyph = CurrentGlyph() path = glyph.naked().getRepresentation("defconAppKit.NSBezierPath") cheers!