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

    • RafaŁ Buchner

      UNSOLVED STAT table resources?
      General Questions • 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”?
      General Questions • 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.
      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 How to customize preview of space center?
      General Questions • 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
      General Questions • 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
      General Questions • 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.
      General Questions • 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
      General Questions • • 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?
      General Questions • 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?
      General Questions • • RafaŁ Buchner  

      6
      0
      Votes
      6
      Posts
      34
      Views

      frederik

      look also at ufo2ft
    • Mitja Miklavcic

      SOLVED macOS 10.13 issues
      General Questions • • 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
      General Questions • 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
      General Questions • ufo font info afdko fonttools • • RafaŁ Buchner  

      6
      0
      Votes
      6
      Posts
      47
      Views

      RafaŁ Buchner

      Thanks @gferreira!
    • martin

      SOLVED booleanOperations for dummies
      General Questions • • martin  

      4
      0
      Votes
      4
      Posts
      12
      Views

      martin

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

      SOLVED Clipboard content for multiple glyphs
      General Questions • 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?
      General Questions • 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
      General Questions • 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
      General Questions • 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…
    • ddaanniiieeelll

      SOLVED Resolve merge conflicts
      General Questions • 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
      General Questions • 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!