Bug 345118 - Font kerning issues with text tools - "Shape text" vs "Artistic text"
Summary: Font kerning issues with text tools - "Shape text" vs "Artistic text"
Status: RESOLVED UNMAINTAINED
Alias: None
Product: calligracommon
Classification: Applications
Component: flake-plugins (other bugs)
Version First Reported In: 2.9.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Calligra Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-13 13:45 UTC by Rafael Linux User
Modified: 2023-08-23 01:34 UTC (History)
1 user (show)

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


Attachments
screenshot of 'Pattern' in Krita 2.9 with liberation narrow. (118.00 KB, image/png)
2015-03-20 10:09 UTC, Halla Rempt
Details
On the left, "Liberation Sans Narrow". Arial on the right side. (133.30 KB, image/png)
2015-03-20 11:18 UTC, Rafael Linux User
Details
Source KRA file with "Liberation Sans Narrow" and "Arial" face to face. (83.09 KB, application/x-krita)
2015-03-20 11:26 UTC, Rafael Linux User
Details
file on my system (269.74 KB, image/png)
2015-03-20 11:40 UTC, Halla Rempt
Details
Text font proportion not equal inside "Artistic" and "Shape" text boxes (64.65 KB, image/png)
2015-03-20 12:31 UTC, Rafael Linux User
Details
New KRA source file (99.54 KB, application/x-krita)
2015-03-20 12:32 UTC, Rafael Linux User
Details
Liberation Sans Narrow in OpenSUSE 13.1 and Krita 2.8.6 (57.69 KB, image/jpeg)
2015-03-21 23:01 UTC, Rafael Linux User
Details
"Shape text" and "Artistic text" face to face, as seen in my PC (15.82 KB, image/png)
2015-03-22 00:12 UTC, Rafael Linux User
Details
The KRA source file (40.72 KB, application/x-krita)
2015-03-22 00:14 UTC, Rafael Linux User
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Linux User 2015-03-13 13:45:01 UTC
A strange behaviour with "Liberation Narrow". 
Insert any text with "Text (artistic) tools".
Select "Liberation Narrow" font (it comes with LibreOffice, for example) 
Type "pattern".
Shrink it to 8 points font size.
You will observe that Krita adds extra space after "a" and "e" letters.
It doesn't happeng at Inkscape, Libreoffice or GIMP.

Reproducible: Always

Steps to Reproduce:
1. Insert any text with "Text (artistic) tools".
2. Select "Liberation Narrow" at 8 points font (it comes with LibreOffice, for example) 
3. Type "pattern" inside the object.

Actual Results:  
A extra space is inserted after the "a" and "e" letters

Expected Results:  
Do not show that extra space (is like a typed "space")
Comment 1 Halla Rempt 2015-03-20 10:09:04 UTC
Hi Rafael,

Thanks for your report. I can't reproduce it, though. We're not doing the text layout ourselves, that's, as far as I can tell, done by Qt...
Comment 2 Halla Rempt 2015-03-20 10:09:39 UTC
Created attachment 91647 [details]
screenshot of 'Pattern' in Krita 2.9 with liberation narrow.
Comment 3 Halla Rempt 2015-03-20 11:01:37 UTC
That's the font I used, as you can see on the screenshot. Can you add a screenshot as well?
Comment 4 Rafael Linux User 2015-03-20 11:15:26 UTC
I forgot to say the font is "Liberation SANS Narrow" (not only "Liberation Narrow". I will export my example and  I'll upload it now .
Comment 5 Rafael Linux User 2015-03-20 11:18:15 UTC
Created attachment 91648 [details]
On the left, "Liberation Sans Narrow". Arial on the right side.
Comment 6 Rafael Linux User 2015-03-20 11:21:18 UTC
Comment on attachment 91648 [details]
On the left, "Liberation Sans Narrow". Arial on the right side.

As you can see, letter spacing is proportional to font size on Arial font. That's not true for "Liberation Sans Narrow" font.
Comment 7 Rafael Linux User 2015-03-20 11:26:24 UTC
Created attachment 91649 [details]
Source KRA file with "Liberation Sans Narrow" and "Arial" face to face.
Comment 8 Halla Rempt 2015-03-20 11:40:52 UTC
Created attachment 91650 [details]
file on my system

Well, yes... But that's not a Krita issue, sorry. We can only use the glyph metrics as we get them from Qt, and somehow on your system you're getting different font metrics than you can see that I get for the same font.  Where the difference in settings can be, I don't know...
Comment 9 Rafael Linux User 2015-03-20 12:28:36 UTC
I not agree Boudewijn. In next captured screen you will see:
- Artistic text boxes (as you seen previuously)
- A shape text box (with the phrase "SHAPE TEXT" ("TEXT" background is green because another not fixed bug in Krita, reported by me some time ago)
- A GIMP window, with the same text, at the same view zoom (but obviuosly, Krita is not working with font point the same way, as you can observe).

But the important in this snapshot is, as you can see, the space between letter is right in text inside "Shape text" boxes, so is a "Artistic text" boxes related issue  :(
Comment 10 Rafael Linux User 2015-03-20 12:31:11 UTC
Created attachment 91651 [details]
Text font proportion not equal inside "Artistic" and "Shape" text boxes
Comment 11 Rafael Linux User 2015-03-20 12:32:33 UTC
Created attachment 91652 [details]
New KRA source file
Comment 12 Halla Rempt 2015-03-20 12:35:22 UTC
Sorry, gimp and libreoffice are irrelevant, they don't use Qt. They probably get the glyph metrics in a different way. And as you can see, there is no problem on my (opensuse) system, so the difference must be one of configuration: it cannot be a difference in the code of the artistic text shape.
Comment 13 Rafael Linux User 2015-03-20 12:43:54 UTC
My KRITA version is 2.9.1, but I can't understand why two tools of Krita, in my system (is not a special compilation, but a 13.2 x64 OpenSUSE) are working different.

My graphics card is an Intel ... but I think is not relevant. I will try later in my home PC to find out what's the problem.

Thank you
Comment 14 Halla Rempt 2015-03-20 12:48:16 UTC
I suspect it's one of the many places where you can create settings for font rendering, For instance, I have disabled hinting in kde's system settings.
Comment 15 Rafael Linux User 2015-03-20 12:55:09 UTC
Well, I tried in this PC your suggestion, but unfortunately, it only make my desktop ugly and not so readable. No changes on reloading Krita and typing a new "Pattern" example as before we did. I wish that will not happen in my home PC.
Comment 16 Rafael Linux User 2015-03-21 23:01:43 UTC
Created attachment 91675 [details]
Liberation Sans Narrow in OpenSUSE 13.1 and Krita 2.8.6

This is at my home PC. As you can observe, there is not so much space, but there is a noticeable different proportion between the two text tools.
Comment 17 Rafael Linux User 2015-03-21 23:43:38 UTC
I discovered this issue is not specific font related, but text tools related, so I'll open another thread and think this should be closed.
Comment 18 Rafael Linux User 2015-03-22 00:11:05 UTC
I will upload two new files:
- A PNG, as it is been seen in my PC
- A KRA file, for load in other PCs and let others see the results
Comment 19 Rafael Linux User 2015-03-22 00:12:51 UTC
Created attachment 91677 [details]
"Shape text" and "Artistic text" face to face, as seen in my PC
Comment 20 Rafael Linux User 2015-03-22 00:14:38 UTC
Created attachment 91678 [details]
The KRA source file
Comment 21 Justin Zobel 2021-03-09 01:22:16 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.
Comment 22 Rafael Linux User 2023-08-23 01:34:31 UTC
It seems there is no "Shape text" tool yet in Krita