Bug 420408 - Part of the letters disappear
Summary: Part of the letters disappear
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Tool/Text (show other bugs)
Version: 4.2.9
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Tiar
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-22 03:45 UTC by sebastian labi
Modified: 2020-09-15 13:07 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
bug image (1.96 MB, image/png)
2020-04-22 03:45 UTC, sebastian labi
Details
Master Of Comics font shows artifacts (42.92 KB, image/png)
2020-04-24 07:13 UTC, Ahab Greybeard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sebastian labi 2020-04-22 03:45:40 UTC
Created attachment 127768 [details]
bug image

SUMMARY
Part of the letters disappear when it exceeds the box. modifying the SVG solves it, but momentarily, when you reopen the file the problem is still there

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Ahab Greybeard 2020-04-23 13:51:16 UTC
I can't reproduce anything like this with the 4.2.9 appimage.

Does this happen with other fonts or just the 'Beyond The Mountains' font?
Comment 2 sebastian labi 2020-04-23 21:58:49 UTC
No, it is a rare bug, because it only does it with a few fonts, all of them are similar.
I leave you a recording of the bug.
maybe it's not a matter of urgency.
https://youtu.be/f9qaJ_lUSgU

I am not using appimage, I installed from the ppa service
Comment 3 Ahab Greybeard 2020-04-24 06:40:35 UTC
Can you try this with the appimage from here:
https://download.kde.org/stable/krita/4.2.9/krita-4.2.9-x86_64.appimage

Can you provide a link to download that font file (and maybe some of the others that do it) so I can try it?
Comment 4 Ahab Greybeard 2020-04-24 07:13:12 UTC
Created attachment 127815 [details]
Master Of Comics font shows artifacts

I just had a closer look at the video and downloaded a font that shows this with the 4.2.9 appimage: https://www.dafont.com/master-of-comics.font

Parts of the font seem to go outside the text box and these are left behind as artifacts when the text box is moved.
The density of the artifacts depends on how fast the box is moved. Slow movement gives dense 'stamping' of the artifacts.

These artifacts can not be removed by turning off/on the layer.
They can be removed by saving the .kra file and then reopening it.
However, the font is not suitable for use in krita (or krita is not suitable for use with this font).

Use in GIMP shows the characters extending above and below the character boxes (but GIMP can deal with it because of how it does text).

Setting to Confirmed
Comment 5 sebastian labi 2020-04-27 14:03:20 UTC
OK, Do you need me to do something else?
Comment 6 Ahab Greybeard 2020-04-27 14:09:14 UTC
No, it's been reported and confirmed with an example font.
Unless someone else asks for more information it's just a case of letting the developers deal with it, if they can.

If you want, it looks like you can use GIMP to do the text on a transparent background and then export it as a .png for import and use in krita.
Comment 7 sebastian labi 2020-04-27 14:16:14 UTC
ok thanks and good week
Comment 8 Tiar 2020-09-15 12:33:08 UTC
Git commit 1163a85f25ab8670eaba2df7572c10c591b29fe9 by Agata Cacko.
Committed on 15/09/2020 at 12:32.
Pushed by tymond into branch 'master'.

Fix rendering (bounding box) of fancy fonts

Before this commit, a font that was surprisingly high would leave
artifacts when dragged

There is already a workaround for the same bug but horizontal,
the same workaround fixes the vertical rendering issue as well.

M  +3    -0    libs/flake/text/KoSvgTextShape.cpp

https://invent.kde.org/graphics/krita/commit/1163a85f25ab8670eaba2df7572c10c591b29fe9
Comment 9 Tiar 2020-09-15 13:07:03 UTC
Git commit 12145b75516d389afd3afd93a91a14b2be6f5e17 by Agata Cacko.
Committed on 15/09/2020 at 13:06.
Pushed by tymond into branch 'krita/4.3'.

Fix rendering (bounding box) of fancy fonts

Before this commit, a font that was surprisingly high would leave
artifacts when dragged

There is already a workaround for the same bug but horizontal,
the same workaround fixes the vertical rendering issue as well.


(cherry picked from commit 1163a85f25ab8670eaba2df7572c10c591b29fe9)

M  +3    -0    libs/flake/text/KoSvgTextShape.cpp

https://invent.kde.org/graphics/krita/commit/12145b75516d389afd3afd93a91a14b2be6f5e17