GithubHelp home page GithubHelp logo

Comments (5)

weiweihuanghuang avatar weiweihuanghuang commented on September 20, 2024 1

Ah yep this is out of date I since made a version with a kerning group dictionary... will upload eventually

from wei-glyphs-scripts.

gorjious avatar gorjious commented on September 20, 2024

Trying these scripts again for G3 – 3.0.3 (3091)
First ran into this error:
AttributeError: 'NSKVONotifying_GSFont' object has no attribute 'kerningDict'
Adding this code removed the error:

if Glyphs.versionNumber >= 3.0:
	kernDict = thisFont.kerning
else:
	kernDict = thisFont.kerningDict()

However, now I am getting this:

File "objc/_convenience_mapping.pyc", line 19, in __getitem__objectForKey_
File "objc/_convenience.pyc", line 118, in container_unwrap

The related Show Kerning Pairs as Left/Right Glyphs are also not working. They run but the result is an empty tab.

Would it be possible to update these scripts? Or, any suggestions on how to solve these errors?

from wei-glyphs-scripts.

weiweihuanghuang avatar weiweihuanghuang commented on September 20, 2024

Ok interesting, do you get the same error when you run "Show Kerning Pairs Context.py" ? Because I don't get the error. BUT if I copy the same code to another file with a different menu title, I do... strange. Going to look into it.

from wei-glyphs-scripts.

weiweihuanghuang avatar weiweihuanghuang commented on September 20, 2024

Ok these should work! Try these...

from wei-glyphs-scripts.

gorjious avatar gorjious commented on September 20, 2024

The "Show Kerning Pairs" seems to be semi-working now. For some reason, it is working for Latin but when I try it for Armenian the right pair is blank.

I was fiddling around with this more yesterday. Using Toshi's "New Tab with Unlocked Kerning Pairs" as a reference...I got something working. Haven't had ample time to test it or clean up but the code but feel free to check it out.

Show Kerning Pairs – GJ (draft).py.zip

from wei-glyphs-scripts.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.