Navigation

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

    • 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!
    • RafaŁ Buchner

      SOLVED Get names of not generated list based on the selection in the font window
      General Questions • scripting template glyphs • • RafaŁ Buchner  

      3
      0
      Votes
      3
      Posts
      420
      Views

      RafaŁ Buchner

      @frederik said in get names of not generated list based on the selection in the font window: font.templateSelectedGlyphNames Thanks a lot, Frederik !!!
    • thom

      Update TemplateGlyphs
      General Questions • scripting unicode template glyphs glyph order • • thom  

      4
      0
      Votes
      4
      Posts
      746
      Views

      thom

      No really, it remove also the existing templateGlyphs. But: glyphOrder = [] for glyph in f.lib['public.glyphOrder']: glyphOrder.append(glyph) for glyph in myListOfGlyphs: glyphOrder.append(glyph) f.glyphOrder = glyphOrder Thanks Fredrik!
    • joanca

      Remove Glyph as alt-delete (robofab?)
      General Questions • scripting template glyphs • • joanca  

      2
      0
      Votes
      2
      Posts
      467
      Views

      frederik

      The gray template glyph cells are being build up for new UFOs from the character set in the preferences and for existing UFOs the font lib key public.glyphOrder if the lib key is existing. You can alter the data in the lib easily with interaction with the UI by: font = CurrentFont() glyphOrder = font.glyphOrder glyphOrder.remove("a") # test before removing a name if its in the list font.glyphOrder = glyphOrder # done This is sort of what happens when you alt-delete a glyph in the font overview. good luck
    • jmickel

      Template Preview Font missing characters
      General Questions • unicode template glyphs • • jmickel  

      5
      0
      Votes
      5
      Posts
      734
      Views

      frederik

      As mentions in red at the bottom of the preferences if you change the template font: Template glyphs preview font will be applied after a restart.
    • franz

      Creating template glyphs?
      General Questions • preferences template glyphs • • franz  

      3
      0
      Votes
      3
      Posts
      573
      Views

      franz

      Hi Frederik, generating them with a script would be the option I'm after. Good to hear it's coming! F