These are chat archives for caryll/otfcc

15th
Sep 2016
Belleve Invis
@be5invis
Sep 15 2016 02:59
Subroutinizer (almost) done.
Cosimo Lupo
@anthrotype
Sep 15 2016 05:03
Whoa!
Is It Independent from compreffor or based on it somehow?
Belleve Invis
@be5invis
Sep 15 2016 05:09
@anthrotype yes. Built on the Nevill-Manning algorithm.
and it is a very fast one-pass algorithm.
I searched many papers and finally found that, in the field of Grammar-based file compression.
btw, @anthrotype @schriftgestalt Are you at ATypI?
Could you please ask MS, Adobe or Apple that whether OT Variations support MATH table.
It is not mentioned in the spec.
Cosimo Lupo
@anthrotype
Sep 15 2016 05:13
Not not yet
MATH is not supported by variations yet, like the SVG table is not either
Belleve Invis
@be5invis
Sep 15 2016 05:14
OK.
Cosimo Lupo
@anthrotype
Sep 15 2016 05:14
There are plans to add it
Btw this work you're doing is really cool!
Belleve Invis
@be5invis
Sep 15 2016 05:14
Yeah, searching an algorithm is really hard.
The result is: 295KB (otfcc) vs 299KB (Adobe)
Maybe I should write (or find) an algorithm for the Caryll, which produces quad-(or oct- even 16-) trees to represent non-linearity of the final coordinates being solved from a constraint solver.
Cosimo Lupo
@anthrotype
Sep 15 2016 05:31
I'm impressed. Seriously, Believe, if you are interested in working in London or even simply doing an internship at DaMa fell free to send in your CV.
You can send an email to bianca.berning@daltonmaag.com, my manager, telling her I gave you her contact.
Belleve Invis
@be5invis
Sep 15 2016 05:34
Oh, very thanks!
Cosimo Lupo
@anthrotype
Sep 15 2016 05:36
I was thinking I could add some Python bindings for caryll
So one could call it from python code
Belleve Invis
@be5invis
Sep 15 2016 05:36
Well, I prefer Node.js more...
Cosimo Lupo
@anthrotype
Sep 15 2016 05:37
Yeah I know
But I prefer python :-P
Anyway that was just an idea
Maybe I'll play with it in my spare time
Belleve Invis
@be5invis
Sep 15 2016 05:44
And I should do something like check memory leaks...
Cosimo Lupo
@anthrotype
Sep 15 2016 05:44
There was a talk at Atypi about JavaScript projects for font development, they mostly talked about OpenType.JS and related stuff. They did not mention caryll/otfcc (which strictly speaking is C code but it serialises to JSON). I will mention it to the guys, maybe they will be interested in checking it out
Belleve Invis
@be5invis
Sep 15 2016 05:45
to be honestly OpenType.js’s code is not that good.
lacks support of many things like features...
or CID.
CFF2 is almost CID-only!
Cosimo Lupo
@anthrotype
Sep 15 2016 05:46
They deprecated Cid/name keyed distinction now
Merged the two in CFF2
Belleve Invis
@be5invis
Sep 15 2016 05:47
well, similar to CID more.
Cosimo Lupo
@anthrotype
Sep 15 2016 05:47
Yeah
Belleve Invis
@be5invis
Sep 15 2016 05:47
(btw, otfcc’s -O3 optimization will turn every input CFF into CID...)
Cosimo Lupo
@anthrotype
Sep 15 2016 05:47
Have you noticed the opentype-gx branch in the behdad/fonttools repo?
Belleve Invis
@be5invis
Sep 15 2016 05:48
not yet.
but, it is variations now :)
Cosimo Lupo
@anthrotype
Sep 15 2016 05:49
Hehe
Belleve Invis
@be5invis
Sep 15 2016 05:50
But, I have to design a new set of structs in otfcc now.
representing deltas applied to any value
Cosimo Lupo
@anthrotype
Sep 15 2016 05:50
I see
Belleve Invis
@be5invis
Sep 15 2016 05:51
maybe two of them. points → a separate delta list; metrics → a “extended” number
separating all deltas into new tables may be easier, but I do not like that.
Cosimo Lupo
@anthrotype
Sep 15 2016 05:53
That's basically glyf-gvar approach
Belleve Invis
@be5invis
Sep 15 2016 05:53
the glyf is not that hard
the current points are already structs now.
i can add an extra field like deltaTable *deltaX; deltaTable *deltaY
or manye PointDeltaTable *deltas
but the hard part are the metrics, GPOS positions, things like that.
I have to modify a lot of code.
however, not that much
Belleve Invis
@be5invis
Sep 15 2016 06:15
@anthrotype Mail sent :)
Should I send a copy to you?
Cosimo Lupo
@anthrotype
Sep 15 2016 06:26
Ok, if you like
Georg Seifert
@schriftgestalt
Sep 15 2016 06:30
Could you please ask MS, Adobe or Apple that whether OT Variations support MATH table.
Some slide said that the math table is not supported. (yet???)
Belleve Invis
@be5invis
Sep 15 2016 07:15
@schriftgestalt Tiro told me not yet.