Navigation

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

    • rdmcmurray

      SOLVED Check if open font has UI?
      General Questions • user interface fontparts • • rdmcmurray  

      3
      0
      Votes
      3
      Posts
      11
      Views

      rdmcmurray

      Thank you @gferreira! I was calling showInterface as a property of the font itself which obviously didn't get me very far!
    • RafaŁ Buchner

      SOLVED How to turn “line” segment into “curve” segment with code?
      General Questions • fontparts pens • • RafaŁ Buchner  

      5
      0
      Votes
      5
      Posts
      33
      Views

      frederik

      don't know the context but you can also use the MathGlyphPen from fontMath to convert all line segments to curve segments
    • guidoferreyra

      UNSOLVED Fontparts, Kerning groups and performance.
      General Questions • kerning fontparts • • guidoferreyra  

      4
      0
      Votes
      4
      Posts
      34
      Views

      guidoferreyra

      Hi @frederik It just never ends, no tracebacks. If I don’t manage to solve it with @gferreira tip I will try to prepare a dummy ufo and post it here. Thank you both!
    • jansindl3r

      SOLVED help claims that guideline.selected exists but does not
      Problems & Bugs • fontparts guidelines • • jansindl3r  

      7
      0
      Votes
      7
      Posts
      37
      Views

      gferreira

      hello @jansindl3r, the current guideline is only available from an interactive tool. here’s an example: (shift-click guide to flip direction) from mojo.events import EditingTool, installTool class FlipGuideTool(EditingTool): def getToolbarTip(self): return "flip guide" def mouseDown(self, point, clickCount): g = CurrentGlyph() guides = CurrentGuidelines() if guides and self.shiftDown: guides[0].angle += 90 installTool(FlipGuideTool()) cheers!
    • benedikt

      SOLVED RComponent.position not working
      Problems & Bugs • components fontparts • • benedikt  

      4
      0
      Votes
      4
      Posts
      47
      Views

      frederik

      component.position will be removed in future version, as it was a bug :)
    • jansindl3r

      SOLVED unexpected behaviour when copying glyph in Python
      Problems & Bugs • scripting fontparts pens • • jansindl3r  

      4
      0
      Votes
      4
      Posts
      28
      Views

      jansindl3r

      @gferreira I see, thanks!!!
    • colinmford

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

      5
      0
      Votes
      5
      Posts
      80
      Views

      colinmford

      Thanks, @frederik!
    • nowell

      SOLVED Only PNG images can be added by a script?
      General Questions • scripting fontparts images • • nowell  

      8
      0
      Votes
      8
      Posts
      315
      Views

      Kalisspera

      If you need to work with JPG images, you could consider converting them to PNG format before adding them through the script. And hey, if you ever need to optimize those JPG files for better performance or smaller sizes, check out jpg compress tools. They can help maintain image quality while reducing file sizes effectively.
    • ArrowType

      UNSOLVED Possible bug in lib.fontObjects.fontPartsWrappers UIdocument()? Works in v3.2, but not latest v3.3 beta.
      General Questions • scripting fontparts • • ArrowType  

      2
      0
      Votes
      2
      Posts
      64
      Views

      frederik

      This should be solved in the upcoming release, and already works fine in the cutting-edge-nightly-build version...
    • bahman

      UNSOLVED Decorating the RF objects!
      General Questions • scripting fontparts • • bahman  

      5
      1
      Votes
      5
      Posts
      180
      Views

      bahman

      @frederik Yeah that is very powerful. I have another related question. let's say I want my custom method to be executed every time an object changes. I don't want to add a defcon notification but rather override a method and use the super on an internal method of glyph object, then execute my own method. I looked at defcon but it seemed that it's only possible by overriding _set_dirty, but not sure if that's the right way. What do you think?
    • connor

      SOLVED bPoint Relative Coordinates
      General Questions • fontparts bpoints • • connor  

      4
      0
      Votes
      4
      Posts
      247
      Views

      frederik

      also see http://fontparts.robotools.dev/en/stable/objectref/objects/bpoint.html
    • StephenNixon

      SOLVED Preserve empty glyphs when applying defcon sort order through script
      General Questions • fontparts template glyphs glyph order sorting glyphs • • StephenNixon  

      3
      0
      Votes
      3
      Posts
      289
      Views

      StephenNixon

      @gferreira said in Preserve empty glyphs when applying defcon sort order through script: newGlyphOrder = f.naked().unicodeData.sortGlyphNames(f.templateGlyphOrder, sortDescriptors=[dict(type="cannedDesign", ascending=True, allowPseudoUnicode=True)]) f.templateGlyphOrder = newGlyphOrder Oh, interesting! Sure enough, changing glyphOrder to templateGlyphOrder fixed my script. It now works just as hoped. :) Thanks so much for point out that difference to me!
    • juergensupertype

      SOLVED EditThatNext …
      Extensions • fontparts • • juergensupertype  

      5
      1
      Votes
      5
      Posts
      348
      Views

      erik

      Thanks @gferreira and @juergensupertype! Fixed, new version committed. Update via Mechanic2.
    • RafaŁ Buchner

      SOLVED is there a way to convert defcon glyph object to RGlyph?
      General Questions • scripting fontparts defcon mojo.ui • • RafaŁ Buchner  

      2
      0
      Votes
      2
      Posts
      228
      Views

      gferreira

      hi Rafał, I’ve been there too :) you can wrap an RGlyph around a defcon glyph, like this: for glyphWindow in AllGlyphWindows(): # get RGlyph from defcon glyph g = RGlyph(glyphWindow.getGlyph()) # do stuff using the FontParts API print(g[0].points) succes!
    • grahambradley

      SOLVED Unopenable UFO from font.interpolate()
      Problems & Bugs • fontparts interpolation • • grahambradley  

      4
      1
      Votes
      4
      Posts
      417
      Views

      grahambradley

      Ah cool. Thank you!
    • colinmford

      SOLVED Best way to get a bPoint given an identifier?
      General Questions • points fontparts identifiers • • colinmford  

      3
      0
      Votes
      3
      Posts
      323
      Views

      colinmford

      Really substantive answer, @gferreira! Thanks!
    • gferreira

      RoboTools, a new umbrella for UFO-related code libraries
      Announcements • fontparts vanilla defcon robofab fontpens • • gferreira  

      1
      6
      Votes
      1
      Posts
      1093
      Views

      gferreira

      To all developers working with UFO-tools, here’s an important announcement: The RoboFab Developers organisation on GitHub has been retired, and a new organisation has been created in its place: RoboTools! From now on, RoboTools is the new home of FontParts, FontPens, and several other libraries originating from Type Supply. The main goal behind this change is to have more people involved in maintaining these libraries and providing support to users. Here’s the full list of libraries which are now under the RoboTools umbrella: compositor defcon defconAppKit extractor fontMath fontParts fontPens roboFab ufo2fdk vanilla Big thanks to Just van Rossum and Ben Kiel for setting everything up. Happy coding! here’s the original announcement by Just van Rossum on Twitter
    • RafaŁ Buchner

      SOLVED Finding bPoint for RPoint and the other way around
      General Questions • scripting fontparts • • RafaŁ Buchner  

      4
      0
      Votes
      4
      Posts
      585
      Views

      RafaŁ Buchner

      Thanks!!!!
    • jesentanadi

      SOLVED Find out what part of a glyph is selected
      General Questions • scripting fontparts • • jesentanadi  

      8
      0
      Votes
      8
      Posts
      810
      Views

      jesentanadi

      @frederik sorry, didn't realize it's new to FontParts too. I'll give 3.2b a try.
    • RafaŁ Buchner

      SOLVED RContour.insertPoint() on curve?
      Documentation • scripting contours fontparts • • RafaŁ Buchner  

      5
      0
      Votes
      5
      Posts
      1054
      Views

      frederik

      thanks for your example!!