Navigation

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

    General Questions

    • 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
      26
      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!
    • daniel

      SOLVED Resolve merge conflicts
      ufo git • • daniel  

      6
      0
      Votes
      6
      Posts
      40
      Views

      daniel

      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!
    • ryan

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

      5
      0
      Votes
      5
      Posts
      40
      Views

      gferreira

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

      SOLVED list all undos
      observers undo • • jansindl3r  

      8
      0
      Votes
      8
      Posts
      61
      Views

      jansindl3r

      @gferreira thanks a lot! I will look into it :)
    • 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
    • bahman

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

      18
      0
      Votes
      18
      Posts
      96
      Views

      bahman

      Sorry, I just made it public.
    • martin

      SOLVED booleanOperations for dummies
      • martin  

      4
      0
      Votes
      4
      Posts
      10
      Views

      martin

      @gferreira so sorry, yes, I got it!
    • RafaŁ Buchner

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

      6
      0
      Votes
      6
      Posts
      41
      Views

      RafaŁ Buchner

      Thanks @gferreira!
    • bobby

      SOLVED Generate Trial Fonts
      font generation • • bobby  

      3
      0
      Votes
      3
      Posts
      28
      Views

      gferreira

      added as a new How-To: Generating trial fonts
    • Mitja Miklavcic

      SOLVED macOS 10.13 issues
      • Mitja Miklavcic  

      5
      0
      Votes
      5
      Posts
      28
      Views

      Mitja Miklavcic

      @frederik @gferreira many thanks for this! All best, Mitja.
    • RafaŁ Buchner

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

      6
      0
      Votes
      6
      Posts
      33
      Views

      frederik

      look also at ufo2ft
    • grahambradley

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

      5
      0
      Votes
      5
      Posts
      48
      Views

      grahambradley

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

      SOLVED Image on a button from a glyph representation
      • bahman  

      5
      0
      Votes
      5
      Posts
      29
      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()
    • paulinefourest

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

      5
      0
      Votes
      5
      Posts
      23
      Views

      frederik

      Good!! enjoy and be safe
    • ryan

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

      12
      0
      Votes
      12
      Posts
      60
      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
    • 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
      47
      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!
    • jansindl3r

      SOLVED How to customize preview of space center?
      space center observers representations • • jansindl3r  

      6
      0
      Votes
      6
      Posts
      46
      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
    • guidoferreyra

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

      4
      0
      Votes
      4
      Posts
      32
      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!
    • ryan

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

      8
      0
      Votes
      8
      Posts
      57
      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.
    • RafaŁ Buchner

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

      3
      0
      Votes
      3
      Posts
      25
      Views

      RafaŁ Buchner

      looks promising, will check it out