Placeholder for selected glyph - #2206
Conversation
|
@justvanrossum I just pushed an update that remove the |
Hm, I'm not sure we can just do that. There was a reason there can't be a selected glyph during editing kerning. This definitely needs more thinking. There is another problem: if you use the "next/previous glyph" context menu, or use the related chars/glyph panel to insert a glyph, or use the glyph search panel to switch the selected glyph, the |
|
@justvanrossum I pushed a fix for the "next/previous glyph", by adding a placeholder key in the glyphNames list |
what was the reason ? |
|
The kern tool currently does not allow selecting a glyph. It has to do with undo: normally, a selected glyph can be edited (via the info panel), but kerning has its own undo stack. So there's a lot of potential for confusion. So maybe the kern tool indeed needs to be able to select a glyph (in addition to selecting kern pairs), but then perhaps we shouldn't allow it to be edited. Or that (glyph) undo does not work while the kern tool is active. Like I said, it needs more thinking. I don't know the best solution right now, just that as it stands it cannot work. |
|
Can't we add a key like |
That's worth trying! |
… null in kerning tool
I just pushed it, it looks to work well |
It's something, but it is not quite pretty: it disappears when reloading, ie. it doesn't get stored in the URL. Like I said, it really needs more thinking, and I really need some time for that. |
|
Like, the whole |
Why is it not working well in our context? I'm using this pull request for spacing now, and it helps a lot |
I'm not saying it doesn't help you or doesn't work as you intended, but it does not work for the edge cases I mentioned above. It has messy behavior and the concept deserves a better solution. And like I said many times now, I need more time to think through the implications and possible better solutions. |
Okay, I was not trying to push you, just trying to get a better understanding of all the implications behind this feature |
|
I think I know how I want to finish this. I'll work on it after #2213 is done. |
…without a glyph selection in the canvas
This fixes #2198: replacing in the canvas all the "/?" from the text entry by the selected glyph.