Canvas Kit Paragraph ellipsis works wrong with Inter font

67 views
Skip to first unread message

Данил Буланов

unread,
Oct 19, 2023, 10:05:08 AM10/19/23
to skia-discuss
I want to use ellipsis on paragraph, but it adds some weird character to the end

Example: https://jsfiddle.skia.org/canvaskit/505392dcfc6f0c2ae408e123d122f8b8ac903ba963209f5926bc0b2183175eb0

Notice that it depends on a font, since it works fine with Roboto font (in official examples), and it also works with font which includes latin only, but it does not if it uses extended version of font

Is there a workaround for this?

jlav...@google.com

unread,
Oct 19, 2023, 5:34:43 PM10/19/23
to skia-discuss
It does look as a bug but what puzzles me is that it depends on a font... I downloaded your fonts and I cannot reproduce it, of course.
Let me play with it for a while because at the moment I cannot imagine any scenario that leads to this weirdness.

jlav...@google.com

unread,
Oct 23, 2023, 5:01:37 PM10/23/23
to skia-discuss
I found the bug and the fix for it, but there is no workaround so you will have to wait a bit for the fix to come through. I will cc you on the code review (if it's possible) so you will know when it's done.

Данил Буланов

unread,
Oct 23, 2023, 5:30:21 PM10/23/23
to skia-discuss
I am glad to hear that! Thanks for your help!

вторник, 24 октября 2023 г. в 00:01:37 UTC+3, skia-discuss:

jlav...@google.com

unread,
Oct 24, 2023, 11:08:26 AM10/24/23
to skia-discuss
The fix was submitted few minutes ago.
Reply all
Reply to author
Forward
0 new messages