python 2.x script for FontForge. My first SVGinOpenType color fonts generator. Hope, will work...
- install fontTools (3.x) for Python 2
- place SVGinOTlayersCompositor.py in ~/.FontForge/python
- open DigitaltT.sfd (in SVGinOTlayersCompositor_021/fontTester/ directory) in FontForge
- from menu Tools → SVGinOpenType → select layersCompositor 0.21
- layersCompositor should have previously saved layer values (and schould look like on image in doc/howto.pdf)
- click "Generate OpenTypeSVG font" Button
- in DigitaltT.sfd directory will be generated DigitaltTColor.ttf
- open test_in_firefox_or_edge.html in Firefox Browser to test font
- play with layer values in dialog, and have hun :)
- open new font in FontForge
- prepare layers:
- you need one "fallback" layer with (at best quadratic paths) glyphs for programs without SVGinOT support
- as many qubic layers, as you need for SVG glyphs
- prepare glyphs ( I know..)
- save .sfd file
- from menu Tools → SVGinOpenType → select layersCompositor 0.21
- select fallback layer
- select one SVG layer (lowest layer in your layers order) and edit color/opacity values
- click "add new layer" for next SVG layers (reverse order!), select layers name and edit color/opacity values
- click "Generate OpenTypeSVG font" Button
- in your .sfd directory will be generated font xxxxxxColor.ttf
PDF with details: (https://github.com/glukfonts/SVGinOTlayersCompositor/blob/master/doc/howto.pdf)