Bug 150467 - Disable ligature when using custom character spacing
Summary: Disable ligature when using custom character spacing
Status: RESOLVED DUPLICATE of bug 66819
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.0.0 beta1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-18 08:23 UTC by jindam, vani
Modified: 2022-09-05 23:39 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
how it looks on lo writer 7403 (219.34 KB, image/jpeg)
2022-08-18 08:23 UTC, jindam, vani
Details
Minimal example showing the problem using ligatures + custom character spacing (11.90 KB, application/vnd.oasis.opendocument.text)
2022-09-05 22:55 UTC, Hossein
Details
minimal example showing tt ligature + Calibri font (11.87 KB, application/vnd.oasis.opendocument.text)
2022-09-05 23:05 UTC, Hossein
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jindam, vani 2022-08-18 08:23:02 UTC
Created attachment 181846 [details]
how it looks on lo writer 7403

* open attachment 159217 [details]
* see attachment 159218 [details]
* spacing is correct for "eggy"
* incorrect spacing "ketto"
* see screenshot how it looks on lo
writer (how looks libreoffice 7403.jpg)

repro:
Version: 7.4.0.3 / LibreOffice Community
Build ID: 40(Build:3)
CPU threads: 4; OS: Linux 3.18; UI render: default; VCL: x11
Locale: en-US (C); UI: en-US
Debian package version: 1:7.4.0~rc3-1
Calc: threaded

* note: 7.4.0.3 not available, hence 
updated 7.4.0.0 beta1+
Comment 1 Dieter 2022-09-01 10:34:06 UTC Comment hidden (obsolete)
Comment 2 Timur 2022-09-01 10:47:22 UTC Comment hidden (obsolete)
Comment 3 Dieter 2022-09-01 11:06:22 UTC Comment hidden (obsolete)
Comment 4 Hossein 2022-09-05 22:47:13 UTC
Reproduced with:

Version: 7.3.6.1 / LibreOffice Community
Build ID: 92b673af3a5e8f7cf4716be88dfaca424612f244
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: fa-IR (en_US.UTF-8); UI: en-US
Calc: threaded

This is not actually related to shapes, or filters. Copy the same text that contains ff, which contains a ligature:

Ligature (writing)
https://en.wikipedia.org/wiki/Ligature_(writing)

When using ligatures, "ff" is drawn as ligature "ff", and when you are changing the character spacing, the ligature parts will stick together, and look wrong.

Unicode Character “ff” (U+FB00)
https://www.compart.com/en/unicode/U+FB00

To avoid using ligatures, use the font family name with the addition of "liga=0", such as: "Calibri:liga=0".

A solution to this problem would be disabling ligatures when setting a custom character spacing. This is also what happens in MS Word.
Comment 5 Hossein 2022-09-05 22:55:04 UTC
Created attachment 182241 [details]
Minimal example showing the problem using ligatures + custom character spacing

In this example, there are two lines of text.

1st line: "afft", character spacing: 20pt, font family: "Noto Serif"
2nd line: "afft", character spacing: 20pt, font family: "Noto Serif:liga=0"
Comment 6 Hossein 2022-09-05 23:05:40 UTC
Created attachment 182242 [details]
minimal example showing tt ligature + Calibri font

In this example, there are two lines of text.

1st line: "attic", character spacing: 20pt, font family: "Calibri"
2nd line: "attic", character spacing: 20pt, font family: "Calibri:liga=0"

Compared to the above document, it shows tt ligature. The "Noto Serif" font seem s to lack it.
Comment 7 Hossein 2022-09-05 23:10:48 UTC
> Compared to the above document, it shows tt ligature. The "Noto Serif" font
> seem s to lack it.

Correction: The above file actually shows tti ligature. You can simply delete "i" to get the "tt" ligature.
Comment 8 ⁨خالد حسني⁩ 2022-09-05 23:39:08 UTC
Already fixed in the upcoming 7.5.x

*** This bug has been marked as a duplicate of bug 66819 ***