By setting the lineHeightMultiple of a NSParagraphStyle that is used in a text view I'm getting drawing artifacts when selecting text. This is reproducible in TextEdit. More specifically:
- Open TextEdit in rich text mode
- Pick Courier 14 as the font
- Set line height multiple to 1.4
- Insert a bunch of text
- Select a portion of text with the mouse until the top
- Start decreasing the selection (moving the mouse down)
In some lines, the selection is not totally cleared, leaving a 1px horizontal artifact behind (see screnshot). This also occurs with different fonts, font sizes as lineHeightMultiple values (although not all).
Has anyone experience this or has any idea why this is happening?
Thanks,
Rúben