Kerncheck

81 views
Skip to first unread message

shotype

unread,
Sep 29, 2013, 9:19:52 PM9/29/13
to uafd...@googlegroups.com
Hello,
I tried to use Kerncheck but the error message appeared as followings.

==
~$ kerncheck -doAll /Users/okano/Desktop/project/Project-Regular.otf -log /Users/okano/Desktop/project/Project-Regular.kc.kc.txt
Loading Adobe Glyph Dict...
Collecting font kern data...
Traceback (most recent call last):
  File "/Users/okano/bin/FDK/Tools/osx/../SharedData/FDKScripts/kernCheck.py", line 2009, in <module>
    run()
  File "/Users/okano/bin/FDK/Tools/osx/../SharedData/FDKScripts/kernCheck.py", line 1988, in run
    lookupIndexDict, lookupSequenceDict, fontFlatKernTable = collectKernData(fontPath)
  File "/Users/okano/bin/FDK/Tools/osx/../SharedData/FDKScripts/kernCheck.py", line 520, in collectKernData
    lookupDict[lookup] = scriptDict[srcScript][scrLang][lookup]
KeyError: None

==

Other tools work fine. kerncheck -u and -h also works well.
I would like to know how to solve this problem.
I installed the latest AFDKO and kernchek version seems v1.5.
I’m using MacOSX 10.6.8 python 2.6.1.

Thanks in advance.
Best regards.

Kunihiko Okano

Frank Grießhammer

unread,
Sep 29, 2013, 11:51:19 PM9/29/13
to uafd...@googlegroups.com
Hello Kunihiko,

This looks like your font has no kerning lookups?
That is why lookupDict[lookup] runs into a key error.

Have you tried running the script with another font for testing if kerncheck itself works?

Cheers,
Frank
> --
> You received this message because you are subscribed to the Google Groups "UAFDKOML" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to uafdkoml+u...@googlegroups.com.
> To post to this group, send email to uafd...@googlegroups.com.
> Visit this group at http://groups.google.com/group/uafdkoml.
> For more options, visit https://groups.google.com/groups/opt_out.

shotype

unread,
Sep 30, 2013, 12:46:09 AM9/30/13
to uafd...@googlegroups.com
Thanks Frank,


> This looks like your font has no kerning lookups?
> That is why lookupDict[lookup] runs into a key error.

Here is a part of the kerning table I want to test.
I’m making a Latin part for a Japanese typeface,
so glyph name is using cid names.

feature kern { # Kerning
 # DEFAULT
lookup kern1 {
    pos cid9363 cid96 -80;
    pos cid9366 cid143 -35;
    pos cid9366 cid149 -10;
    pos cid9368 cid149 -30;
......................
    pos [cid9635] @_cid9478 -30;
    pos [cid9635] @_cid9509 -50;
    pos [cid20385] @_cid9509 -30;
    pos [cid15956] @_cid9509 -45;
    pos [cid15956] @_cid95151 -45;
    pos [cid15956] @_cid9517 -45;
    pos [cid15956] @_cid9521 -45;
    pos [cid15956] @_cid95231 -45;
    pos [cid15956] @_cid9527 -45;
    pos [cid15956] @_cid9528 -45;
    pos [cid15956] @_cid9530 -45;
    pos [cid15956] @_cid9534 -45;
} kern1;
 script grek; # Greek
lookup kern1;
 script cyrl; # Cyrillic
lookup kern1;
 script latn; # Latin
lookup kern1;
} kern;


> Have you tried running the script with another font for testing if kerncheck itself works?

Yes, I tried AJensonPro-Lt.otf and GaramondPremrPro.otf, the results were the same but with ACaslonPro-Bold.otf, it worked fine.
Is there any difference among them?

I tested the previous Kerncheck v1.4, it worked fine with my typeface and made a pdf.

Kunihiko


2013年9月30日月曜日 12時51分19秒 UTC+9 frankrolf:

shotype

unread,
Sep 30, 2013, 12:30:14 PM9/30/13
to uafd...@googlegroups.com
Hello Frank,

I’m using Glyphs and I realized that language systems generated automatically.
I revised it and kept languagesystem DFLT dflt; only in the feature window, then it worked fine.

Your advice was very helpful and all problems are solved. There‘s no problem in kerncheck.
Sorry to bother and thank you very much.

Sincerely regards.

Kunihiko



2013年9月30日月曜日 13時46分09秒 UTC+9 shotype:

Frank Grießhammer

unread,
Sep 30, 2013, 12:32:12 PM9/30/13
to uafd...@googlegroups.com
Kunihiko, that is good to know. 
Thanks for the update – I don't think kerncheck has been changed recently. 

Greetings,
Frank


from a two-dimensional keyboard

Miguel Sousa

unread,
Jan 16, 2014, 9:23:50 AM1/16/14
to uafd...@googlegroups.com
This was indeed a bug in kerncheck. The problem is on the regular expression at line 505.
There's a '# ' (disregard the quotes) missing before the words "because already dumped".

M.
Reply all
Reply to author
Forward
0 new messages