RichTextKit icon indicating copy to clipboard operation
RichTextKit copied to clipboard

Distinguish between italic and oblique variants of a font

Open jgcodes2020 opened this issue 2 years ago • 2 comments

Skia supports this via the SKFontStyleSlant enum. This should be supported in RichTextKit.

jgcodes2020 avatar Jul 29 '23 02:07 jgcodes2020

Thanks for reporting this. Are you suggesting a different style attribute to control this? Happy to add this, but currently pretty busy on other projects. Send a PR if you need it urgently and I'll consider merging it.

toptensoftware avatar Jul 30 '23 23:07 toptensoftware

This is more of a low-priority thing. As for attributes, it could replace the existing Italic attribute, and the old property would simply either set Upright or Italic, depending on the font.

jgcodes2020 avatar Jul 31 '23 00:07 jgcodes2020