Font features not applied to first (relevant) glyph in a nested tspan
Summary:
The effect of applying font features e.g. liga
to selection of glyphs is unpredictable.
Steps to reproduce:
- create a text field and set the font to one that has ligatures
- type a string that ligates in that font, e.g. "fifl"
- select some characters and try to disable Standard Ligatures in Text and Font > Features Panel
- repeat on various portions of text (see video)
What happened?
- Inconsistent behavior, sometimes the features are set and sometimes the Apply action seems to have no effect.
- Preview shows the featue applied to all text but they are sometimes finally applied to none.
- The caret is displayed either in the beginning or in the middle of the ligature, thus making it unclear which underlying characters are selected.
What should have happened?
Font features should be set every time.
Moreover, ideally:
- There should be no Apply button, in most apps feature settings are applied immediately (Thus the preview pane which takes up a lot of space is redundant).
- Caret should be displayed in the middle of the ligature when it is placed between its characters (this is how all other apps do that and some fonts even offer ligature caret position info).
Sample attachments:
Version Info:
- Inkscape Version: 1.0.1 (3bc2e813f5, 2020-09-07)
- Operating System: Windows 10
- Operating System version: 1909
Edited by Nathan Lee