Bug 119192 - Text pasted from Impress to Writer switches CTL font to Western font in its style (see comment 5)
Summary: Text pasted from Impress to Writer switches CTL font to Western font in its s...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) All
: medium minor
Assignee: Jonathan Clark
URL:
Whiteboard: target:26.2.0 target:25.8.0.0.beta2
Keywords:
Depends on:
Blocks: Paste RTF-Paste
  Show dependency treegraph
 
Reported: 2018-08-10 07:43 UTC by russell
Modified: 2025-06-18 07:41 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
ODP with only one slide - Firefly (for testing) (911.70 KB, application/vnd.oasis.opendocument.presentation)
2018-08-10 12:32 UTC, Roman Kuznetsov
Details
4 screen captures of Font Name drop-down (89.47 KB, image/jpeg)
2018-08-10 18:46 UTC, russell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description russell 2018-08-10 07:43:28 UTC Comment hidden (obsolete)
Comment 1 Roman Kuznetsov 2018-08-10 12:31:11 UTC
In LibreOffice 6.1.0.3 release on Windows 10:

1. I see in drop-down list correct name of font "Linux Libertine Display G"
2. If I copy Firefly from presentation to Writer, then really first symbol is "Linux Libertine Display G", but all another symbols are "Lohit Hindi", which doesn't install on my computer.
3. I didn't see style "Unrecognized text" in list of styles

ps: please will create new bugs differents for different problem. Don't need write about several problem in one bug. Thank you
Comment 2 Roman Kuznetsov 2018-08-10 12:32:29 UTC
Created attachment 144088 [details]
ODP with only one slide - Firefly (for testing)
Comment 3 russell 2018-08-10 18:46:30 UTC Comment hidden (obsolete)
Comment 4 russell 2018-08-10 18:49:21 UTC Comment hidden (obsolete)
Comment 5 Buovjaga 2018-09-06 16:15:09 UTC
(In reply to russell from comment #0)
> When I clicked in the slide's text box for the word "FireFly", the Font Name
> drop-down showed "Linux Libertine Display G".  I hovered over the Font Name
> drop-down to see the popup text. It simply said, "Font Name". This worked as
> expected.
> 
> However, when I clicked inside the Font Name drop-down, the "Linux Libertine
> Display G" was not in the display. The first font in the list was a font I
> used in a previous LibreOffice session. I expected to see "Linux Libertine
> Display G".

This is bug 92286.

For the 2nd issue:

If you open the style editor for Title in Impress, the CTL Font in the Font tab is "Lohit Hindi".
In the Writer pasted style, the Western font has changed to "Lohit Hindi" and CTL to Lib. Serif.

Repeating steps in shorter form:

1. Open http://numbertext.org/linux/Lively_Alphabet.odp
2. Copy the text Firefly from slide 8
3. Paste to Writer

Already confirmed with 3.3.0 on Windows.

Arch Linux 64-bit
Version: 6.2.0.0.alpha0+
Build ID: 033a68c49fe2b8aa397832d92d400eb0259ea809
CPU threads: 8; OS: Linux 4.18; UI render: default; VCL: gtk3_kde5; 
Locale: fi-FI (fi_FI.UTF-8); Calc: threaded
Built on September 5th 2018
Comment 6 QA Administrators 2019-09-07 05:57:26 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2021-09-07 03:50:13 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2023-09-08 03:05:49 UTC Comment hidden (obsolete)
Comment 9 Eyal Rozenberg 2024-08-02 22:38:48 UTC
Bug still manifests, using the reproduction instructions in comment #5, with:

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 01e6e4303e5a9966f102e0357fe0354a2f74a1c4
CPU threads: 4; OS: Linux 6.6; UI render: default; VCL: gtk3
Locale: en-IL (en_IL); UI: en-US
Calc: threaded

Note: Only copy the word "firefly" - not the entire drawing object! Otherwise the bug does not manifest.
Comment 10 Eyal Rozenberg 2024-08-16 17:30:19 UTC
I'm guessing this is probably something like a one-liner fix, tuple rearrangement or off-by-1 thing. Can't say for sure of course.
Comment 11 Jonathan Clark 2025-06-17 08:37:59 UTC
This is a bug in Edit Engine's RTF serialization code. EE is emitting font attributes after a script type change in a span-level scope, rather than the correct paragraph-level scope.
Comment 12 Commit Notification 2025-06-17 22:00:30 UTC
Jonathan Clark committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/c28307fa99dae0322a3dca7ce0010d87c93ec85a

tdf#119192 editeng: Fix for copy-and-paste using font from wrong script

It will be available in 26.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 13 Commit Notification 2025-06-18 07:41:38 UTC
Jonathan Clark committed a patch related to this issue.
It has been pushed to "libreoffice-25-8":

https://git.libreoffice.org/core/commit/a64df17b7a922d8d9f1cd2358c9f2f78bc6fd6e8

tdf#119192 editeng: Fix for copy-and-paste using font from wrong script

It will be available in 25.8.0.0.beta2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.