Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Solved
    • Unsolved
    1. Home
    2. Recent
    Log in to post
    • All categories
    • Announcements
    • General Questions
    • Feature Requests
    • Problems & Bugs
    • Extensions
    • Documentation
    • Tools Corner
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics

    • connor

      SOLVED Window without title bar?
      General Questions • 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 ?
      General Questions • 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?
      General Questions • 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?
      General Questions • 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.
      General Questions • 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”
      General Questions • user interface observers • • colinmford  

      5
      0
      Votes
      5
      Posts
      72
      Views

      colinmford

      @frederik Thanks!!
    • naorem

      SOLVED Copy/paste glyphs from UFO to another
      General Questions • • 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?
      General Questions • 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?
      General Questions • 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
      General Questions • 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
      General Questions • 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
      General Questions • ufo3 • • RafaŁ Buchner  

      3
      0
      Votes
      3
      Posts
      25
      Views

      RafaŁ Buchner

      Thanks @gferreira!
    • okaytype

      UNSOLVED AccordionView .get() collapsed ?
      General Questions • 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?
      General Questions • fontparts ufolib gliflib • • colinmford  

      5
      0
      Votes
      5
      Posts
      80
      Views

      colinmford

      Thanks, @frederik!
    • ryan

      SOLVED Recreate native Glyph inspector panel sidebearing EditText input
      General Questions • 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?
      General Questions • 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
      General Questions • 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
      General Questions • 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!
    • bahman

      SOLVED Access clipboard content in BaseEventTool on paste
      General Questions • • bahman  

      2
      0
      Votes
      2
      Posts
      66
      Views

      frederik

      this is pretty cool: import AppKit import defcon from fontTools.ufoLib.glifLib import writeGlyphToString, readGlyphFromString # get the paste board pasteboard = AppKit.NSPasteboard.generalPasteboard() # get the data possibleGlifXML = pasteboard.stringForType_(AppKit.NSPasteboardTypeString) # maybe its glif xml, could also just be normal text print(possibleGlifXML) # get a dummy glyph dummyGlyph = RGlyph() succes = False try: # try to read the xml readGlyphFromString(possibleGlifXML, dummyGlyph, dummyGlyph.getPointPen()) succes = True except Exception as e: # if not valid fail print(f"Not valid glif xml!\nerror: {e}\ndata: \"{possibleGlifXML}\"") if succes: # do something with the glyph dummyGlyph.moveBy((50, 50)) # get the glif xml glifXML = writeGlyphToString(dummyGlyph.name, dummyGlyph, dummyGlyph.drawPoints) print(glifXML) # clear the past board pasteboard.clearContents() # write it back in to the paste board pasteboard.setString_forType_(glifXML, AppKit.NSPasteboardTypeString)
    • nina

      UNSOLVED Contextual menu — enable/disable entries?
      General Questions • scripting user interface font overview • • nina  

      4
      1
      Votes
      4
      Posts
      57
      Views

      frederik

      oh, idd not working as it should be... will be fixed in next beta/release thanks