Bug 157875 - Selecting text that uses several font families does not show a blank name in Font Name combobox in Impress
Summary: Selecting text that uses several font families does not show a blank name in ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Fonts-Name-Combobox Font-List
  Show dependency treegraph
 
Reported: 2023-10-21 10:04 UTC by Eyal Rozenberg
Modified: 2023-11-09 01:19 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Original - copy the text from here into a new Impress presentation (10.14 KB, application/vnd.oasis.opendocument.text)
2023-10-21 10:04 UTC, Eyal Rozenberg
Details
two lines of text with different font families (10.12 KB, application/vnd.oasis.opendocument.text)
2023-11-05 06:13 UTC, Kira Tubo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2023-10-21 10:04:03 UTC
If I copy the text from the soon-to-be-attached original.odt into the main content element of the first slide of a new Impress presentation, then select both lines of text (or Select-All within the Impress text box) - the font family box on the toolbars shows me the first paragraph's font family, rather than a blank.

This does not happen if, in the new presentation, I enter the text manually, on two paragraphs, set the fonts by DF, and perform the same selection.
Comment 1 Eyal Rozenberg 2023-10-21 10:04:34 UTC
Created attachment 190363 [details]
Original - copy the text from here into a new Impress presentation
Comment 2 Kira Tubo 2023-11-05 06:13:17 UTC
Created attachment 190653 [details]
two lines of text with different font families
Comment 3 Kira Tubo 2023-11-05 06:18:43 UTC
For me, the font family displays unexpectedly in following scenarios: 

1. Open Impress
2. Manually type two lines of text, each line with different font family
3. Wait a few seconds (if above steps were completed in an existing file or text box)
4. CTRL+A 

OR

1. Open attachment 190653 [details]
2. Copy text
3. Open Impress and paste in a text box
4. CTRL+A OR highlight text with mouse 

I uploaded another file with two completely different font families used (not just font variations of the same family). If the devs get around to fixing Bug 157876, the original file may cause some false negatives while testing this bug. 

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 676e0527d2f31556eccae314fbb12ce204f02ec7
CPU threads: 6; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 4 Stéphane Guillou (stragu) 2023-11-09 01:16:50 UTC
Reproduced.
But no need to copy and paste from Writer, as shown in first set of steps in comment 3.
The displayed font name is the one that was last displayed, so not necessarily the selection's first paragraph's.
Inconsistency might depend on how slow the Font Name combobox updates. (It takes about a second for me.)

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ff3fb42b48c70ba5788507a6177bf0a9f3b50fdb
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Also in 4.0.0.3.

Regression, as it used to work as expected in OOo 3.3.
Comment 5 Stéphane Guillou (stragu) 2023-11-09 01:19:52 UTC
(In reply to Stéphane Guillou (stragu) from comment #4)
> Regression, as it used to work as expected in OOo 3.3.
Actually, no, it's inherited. Just needed to wait a second to let the combobox update, then Ctrl + A: no blank for multiple font families.