Navigation

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

    General Questions

    • bahman

      SOLVED MultiLine View related questions.
      space center • • bahman  

      7
      0
      Votes
      7
      Posts
      42
      Views

      bahman

      Thank you for this!
    • bahman

      This topic is deleted!
      • bahman  

      1
      0
      Votes
      1
      Posts
      3
      Views
    • RafaŁ Buchner

      UNSOLVED STAT table resources?
      variable fonts fonttools • • RafaŁ Buchner  

      3
      0
      Votes
      3
      Posts
      26
      Views

      RafaŁ Buchner

      looks promising, will check it out
    • ryan

      SOLVED Why can’t font overview cell size be “float”?
      user interface font overview • • ryan  

      8
      0
      Votes
      8
      Posts
      60
      Views

      ryan

      Thanks so much, @gferreira, this solves it perfectly in SWM!! I wouldn't have figured out setDimension x2 in splitView + centerGlyphInView(). And yes the main tool has fontOverview.views.sizeSlider.set() :)) I've flowed in your solve. Feel free to play with the real tool here.
    • guidoferreyra

      UNSOLVED Fontparts, Kerning groups and performance.
      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 How to customize preview of space center?
      space center observers representations • • jansindl3r  

      6
      0
      Votes
      6
      Posts
      54
      Views

      frederik

      or wrap changing fill and stroke inside spaceCenterDrawBackgroundLineView spaceCenterDrawLineView notifications. A multiline view has a _fill and _stroke attribute you can temporarily overwrite. good luck
    • ArrowType

      UNSOLVED How to edit color of selected glyph in Font View with version 3.4
      user interface font overview dark mode • • ArrowType  

      6
      0
      Votes
      6
      Posts
      54
      Views

      ArrowType

      Thanks, @frederik. I understand that, and I believe that it is not the best possible way to display this information, as evidenced by the screenshots in this thread. Specific options for selected background/foreground colors would be helpful, as I suggested above. I really appreciate the big advance you've given the app in the recent option updates! It makes a really big difference in the comfort of using RF in the evening. This is just one area that I believe still requires a little extra advancement to make the "dark mode" mode complete. Thank you!
    • ryan

      SOLVED Access current glyph collection view externally
      font overview • • ryan  

      12
      0
      Votes
      12
      Posts
      61
      Views

      okaytype

      It was a dig but I got it, in case anyone is following (and sorry for abusing the Robofont UI so much, Frederik): https://gist.github.com/okay-type/e301a1da610bfdbe484787e93f52ef16
    • paulinefourest

      SOLVED The save file operation failed.
      font generation • • paulinefourest  

      5
      0
      Votes
      5
      Posts
      23
      Views

      frederik

      Good!! enjoy and be safe
    • bahman

      SOLVED Image on a button from a glyph representation
      • bahman  

      5
      0
      Votes
      5
      Posts
      31
      Views

      bahman

      Here is a crude working version. The only drawback here is that it doesn't center the glyph on the button but it's not hard to figure out. I decomposed the glyph so I can scale it. from fontTools.pens.cocoaPen import CocoaPen from vanilla import * import AppKit from mojo.pens import DecomposePointPen g = CurrentGlyph() def decomposeGlyph(srcGlyph): decomposedGlyph = RGlyph() decomposedGlyph.width = srcGlyph.width dstPen = decomposedGlyph.getPointPen() decomposePen = DecomposePointPen(srcGlyph.font, dstPen) srcGlyph.drawPoints(decomposePen) return decomposedGlyph def glyphImage(g, size, margin): g = decomposeGlyph(g) bottomX, bottomY, topX, topY = g.bounds g.moveBy((-bottomX, -bottomY)) w = topX - bottomX h = topY - bottomY maxDimensionGlyph = max([w, h]) maxDimensionSize = max([d-(margin*2) for d in size]) scaleFactor = maxDimensionSize / maxDimensionGlyph g.scaleBy(scaleFactor) g.moveBy((margin, margin)) pen = CocoaPen(g.layer) g.draw(pen) image = AppKit.NSImage.alloc().initWithSize_(size) image.lockFocus() if AppKit.NSApp().appearance() == AppKit.NSAppearance.appearanceNamed_(AppKit.NSAppearanceNameDarkAqua): AppKit.NSColor.whiteColor().set() else: AppKit.NSColor.blackColor().set() pen.path.fill() image.unlockFocus() return image class ImageButtonDemo: def __init__(self): self.w = Window((1000, 1000)) self.w.button = ImageButton((10, 10, 50, 50), imageObject=glyphImage(g, (50, 50), 10), callback=self.buttonCallback) self.w.open() def buttonCallback(self, sender): print("button hit!") ImageButtonDemo()
    • grahambradley

      SOLVED Unrounded glyph widths in an interpolated UFO?
      preferences interpolation • • grahambradley  

      5
      0
      Votes
      5
      Posts
      50
      Views

      grahambradley

      Nice - the code will be super helpful and that's so good to know about the settings. Thank you very much!
    • RafaŁ Buchner

      SOLVED how to save RKerning and RGroups to fea file?
      • RafaŁ Buchner  

      6
      0
      Votes
      6
      Posts
      34
      Views

      frederik

      look also at ufo2ft
    • Mitja Miklavcic

      SOLVED macOS 10.13 issues
      • Mitja Miklavcic  

      5
      0
      Votes
      5
      Posts
      29
      Views

      Mitja Miklavcic

      @frederik @gferreira many thanks for this! All best, Mitja.
    • bobby

      SOLVED Generate Trial Fonts
      font generation • • bobby  

      3
      0
      Votes
      3
      Posts
      29
      Views

      gferreira

      added as a new How-To: Generating trial fonts
    • RafaŁ Buchner

      SOLVED surfing through font.info attributes issue
      ufo font info afdko fonttools • • RafaŁ Buchner  

      6
      0
      Votes
      6
      Posts
      47
      Views

      RafaŁ Buchner

      Thanks @gferreira!
    • martin

      SOLVED booleanOperations for dummies
      • martin  

      4
      0
      Votes
      4
      Posts
      12
      Views

      martin

      @gferreira so sorry, yes, I got it!
    • bahman

      SOLVED Clipboard content for multiple glyphs
      user interaction clipboard • • bahman  

      18
      0
      Votes
      18
      Posts
      103
      Views

      bahman

      Sorry, I just made it public.
    • jansindl3r

      UNSOLVED Where can I find class of input cell of for spacing in space center?
      space center • • jansindl3r  

      3
      0
      Votes
      3
      Posts
      27
      Views

      jansindl3r

      Thanks a lot, I think it is going surprisingly welly well. Please, I just can't understand why is this not enough to rewrite the cell's content? It works but only when double clicking. Could you please link me, what causes this? I can see "testje" only after double clicking into the cell. https://github.com/jansindl3r/Metrics-dynamically/blob/master/metricsDynamically.py#L30
    • jansindl3r

      SOLVED list all undos
      observers undo • • jansindl3r  

      8
      0
      Votes
      8
      Posts
      64
      Views

      jansindl3r

      @gferreira thanks a lot! I will look into it :)
    • ryan

      UNSOLVED Space center + interpolation
      space center interpolation representations • • ryan  

      5
      0
      Votes
      5
      Posts
      43
      Views

      gferreira

      here’s a different approach using representations to cache the interpolated glyphs — this may help in terms of performance…