Open mrk-z opened 1 year ago
Some situations I've run into:
I was editing a glyph and wanted to copy it to InDesign to check this glyph in other fonts, but in order to copy it I had to switch tab and locate it in the text string.
I accidentally opened a component by double-clicking, and to delete it I needed to switch tab and find it in the text string. Since components are in unicode, I'd also needed to check the unicode, and made sure to select the right section of the text string to delete.
I wanted to search for a glyph to put it on the right side of the glyph I'm currently editing, in order to copy a component from it. A few things made this operation a little tricky:
FWIW, I implemented this last week: https://github.com/googlefonts/fontra/pull/559 which adds the current character as a copyable character to the U+XXXX string in the info panel. This has not yet been deplyed, though.
While I would love to add full text editing capabilities to the main canvas eventually, this is a huge project, and we'll have to see how/when to prioritie it.
Some notes after researching:
compositionstart
, compositionupdate
and compositionend
https://developer.mozilla.org/en-US/docs/Web/API/Element/compositionstart_event<input type="text">
elementsMy current conclusion is that we'll need some hacks to make this work properly, such as having an invisible text input to capture the events, possible making it visible once compositionstart
fires.
Is it possible to have the functions to edit the text string, for example add/delete/copy glyphs, directly in the central editing area, without needing to switch to the text tab in the left panel ?
Sometimes we want to do something to the current glyph, and "switch tab -> locate the current glyph in the text string -> edit the text string" are just a lot of extra steps, especially when there is a long text string, or many similar/unfamiliar characters, or a lot of unicode involved.
Maybe some commands in the context menu (search and add a glyph to the right/delete the current glyph/copy the current glyph)? or something like Glyphs' interface, where you can edit text strings like a text editor directly in the central area when it's in text mode?