LettError / designSpaceRoboFontExtension

A RoboFont extension for creating and editing designspace documents.
MIT License
29 stars 6 forks source link

Proposal: Visual mapping editor. #95

Open typesupply opened 4 months ago

typesupply commented 4 months ago

It would be nice if there was a visual display of the mapping rules similar to the diagrams in the avar documentation. This would be helpful for seeing the movement of the mapping, looking for unnecessary steps, etc. It would be even nicer if this visual display was interactive. It would be even more nicer if this synced with the text editor. Well, I have implemented this feature in a fork here.

image

Graph Documentation:

Note: I had to rewrite the parser so that comments will be preserved during editing via the graph.

If this is something you'd like, I will fix any issues (I know of one at the time of this writing), move the lines of code to the appropriate places and create a PR for your consideration.

LettError commented 4 months ago

We could consider to add group support to the syntax. I know this would screw things up.

gferreira2 commented 4 months ago

see also the Fencer by @Lorp, currently under development, which supports the more complex avar2 mappings

typemytype commented 4 months ago

this is fantastic!

@LettError what should group support do?

Lorp commented 4 months ago

How are you thinking of recording groups in the XML? My current preference is to use name="myGroup" mimicking HTML’s name attribute.

LettError commented 4 months ago

Nothing complicated. The names listed in the rule could be @groupname and then hope that the group is defined in the font.groups

Lorp commented 4 months ago

I’m talking about mappings being assigned groups, according to function, such as all the mappings to fence off an area. In a UI, groups could be activated/deactivated, visible/invisible, differently coloured, and so on. @LettError is that the same as what you are talking about?