Repository navigation
Make it possible to ask user for multiple choices (Python) - #4143
Conversation
Multiple of which can be selected. This is needed for fontforge#703, which I'm implementing as a Python script. This is the first of two new needed APIs. The second will add a new function that works on `fontforge.glyph` objects, similar to `build`, but will instead take a combining class type and place an anchor.
|
I'm happy to review this and strongly approve of the change. I'm going to start with an optional suggestion, which is that now that we have two optional arguments it would be good to throw some keywords onto them so that they can be specified either by position or by keyword. It's entirely backward compatible with the existing interface and not much more work -- the current |
100% agree with this, something that's been irking me is how we overload the signature of various functions, such that which positional arguments are valid depend on the context - something which you would almost never do if you were to write the interface in pure Python. |
…#4143) Multiple of which can be selected. This is needed for fontforge#703, which I'm implementing as a Python script. This is the first of two new needed APIs. The second will add a new function that works on `fontforge.glyph` objects, similar to `build`, but will instead take a combining class type and place an anchor.
Multiple of which can be selected.
This is needed for #703, which I'm implementing as a Python script.
This is the first of two new needed APIs. The second will add a new
function that works on
fontforge.glyphobjects, similar tobuild,but will instead take a combining class type and place an anchor.
For easier testing, the script below may be used:
Type of change