[varLib.instancer] adding / replacing named instances in a sliced VF #2817
JeremieHornus
started this conversation in
Ideas
Replies: 2 comments 3 replies
-
What do you suggest as an interface? Can you provide an example? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Indeed, one would feed the interface with a designspace-like file and the sliced VF to that the tool patches the named instances to it. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Wouldn't it be a super nice feature to add to the
instantiateVariableFont
function that one can add or replace the named instances of the output VF ? For example the extremes may lose their named instances when slicing and it would be good to be able to add new. Also the existing named instance may not make sense anymore so replacing them with new values/names would be very handy.fonttools/Lib/fontTools/varLib/instancer/__init__.py
Line 1146 in 276f6aa
I know it's probably possible to do 'manually' by instantiating then rebuilding the VF from a new designspace with the instanciated fonts but I feel the instancer would be much more powerful with this feature built in.
I'd be glad to hear opinions here.
Beta Was this translation helpful? Give feedback.
All reactions