Giter VIP home page Giter VIP logo

robochrome's Introduction

RoboChrome

Color Fonts for RoboFont

RoboChrome is an extension for RoboFont that allows you to combine several glyphs into one color glyph. It can generate color fonts in the SVG, COLR/CPAL and sbix formats.

Documentation

Extensive documentation and a tutorial are included and are accessible through the extension’s help menu.

Installation

Download or clone the git repository and install the extension by double-clicking on RoboChome.roboFontExt.

Alternatively, you can use Mechanic to install and update RoboChrome.

robochrome's People

Contributors

fsi-jens avatar gferreira avatar jbmorizot avatar jenskutilek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

jbmorizot

robochrome's Issues

Robochrome not opening from extensions menu

Jens: I can't get Robochrome to open from Extensions. It shows up in the menu, I can get to the help file, but the extension window itself doesn't open up—click the title and nothing happens. I've tried both with one of my UFO files and one of your demos, FF Copa, open. I'm using Mojave and RF 3.3.

variable using Color() should be named tuples

It seems with the new FonTools if you make a new Color() object you need to fill the four values and if you want to change one, you can't access it with its name (variable. red).
So color = fontTools.ttLib.tables.C_P_A_L_.Color() doesn't works and color.red = Value neither.

Robochrome not exporting

Hi Jens,

I’m having an issue exporting fonts with Robochrome. I downloaded the latest (0.7.3) through Mechanic and I’m running Robofont 3.3 (1911061105) on Mojave (10.14.3).

After adding a color palette (the default black and black again at 50%) and assigning color layers to base glyphs, I exported a standard OTF with Robofont and then tried generating a SVG.

Robochrome stalls at Rendering SVG and I get the traceback:

Exporting SVG format with palette 1 ...
Traceback (most recent call last):
File "/Applications/RoboFont.app/Contents/Resources/lib/python3.7/vanilla/vanillaBase.py", line 500, in action_
self.callback(sender)
File "RoboChrome.py", line 170, in _choose_file_to_export
File "RoboChrome.py", line 180, in _export_to_font
File "/Users/vc/Library/Application Support/RoboFont/plugins/RoboChrome.roboFontExt/lib/colorfont/init.py", line 346, in export_to_otf
self._export_svg(otfpath, palette_index, parent_window)
File "/Users/vc/Library/Application Support/RoboFont/plugins/RoboChrome.roboFontExt/lib/colorfont/init.py", line 428, in export_svg
red = int(palette[i][1:3], 16)
TypeError: 'NSCachedColorSpaceColor' object is not subscriptable
Traceback (most recent call last):
File "lib/doodleDelegate.pyc", line 95, in sendEvent

File "/Applications/RoboFont.app/Contents/Resources/lib/python3.7/vanilla/vanillaBase.py", line 500, in action

self.callback(sender)
File "RoboChrome.py", line 170, in _choose_file_to_export
File "RoboChrome.py", line 180, in _export_to_font
File "/Users/vc/Library/Application Support/RoboFont/plugins/RoboChrome.roboFontExt/lib/colorfont/init.py", line 346, in export_to_otf
self._export_svg(otfpath, palette_index, parent_window)
File "/Users/vc/Library/Application Support/RoboFont/plugins/RoboChrome.roboFontExt/lib/colorfont/init.py", line 428, in _export_svg
red = int(_palette[i][1:3], 16)
TypeError: 'NSCachedColorSpaceColor' object is not subscriptable

Do you have any clues on fixing this?

Thanks so much.

Screen Shot 2020-02-26 at 11 54 09 am

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.