Bug 104644 - Font modification in styles menu not updated
Summary: Font modification in styles menu not updated
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
5.2.3.3 release
Hardware: All Linux (All)
: medium trivial
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-13 14:36 UTC by emmanuel
Modified: 2017-05-23 08:05 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
A test file (1.37 MB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2016-12-13 14:37 UTC, emmanuel
Details
Font issue, with Calibri font written in italic (161.74 KB, image/png)
2016-12-13 14:44 UTC, emmanuel
Details
Font OK, when manually edited (158.25 KB, image/png)
2016-12-13 14:45 UTC, emmanuel
Details
Demonstration of the issue (video) (4.63 MB, video/mp4)
2017-05-13 15:24 UTC, emmanuel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description emmanuel 2016-12-13 14:36:06 UTC
Description:
When I load a pptx file in Impress that contain a custom font (e.g. not installed by default in the system), the font is not loaded. Instead, Impress chooses Calibri font by default, as the font combobox shows Calibri in an italic style.

Beside, when I set the font of the style in the "style and formatting" menu (shortcut F11) with a custom font (download on internet), nothing happens, the font remains in Calibri.

The custom font IS installed in the system, it is visible in the "gnome-font-viewer" and in the font list of every text software (gedit, pluma, …)
The custom is also in the font list in Impress and Writer.

Steps to Reproduce:
1. Open the supplied PPTX document with Impress in Linux
2. Look at the value of the font list is Calibri
3. Set the font via the "style and formatting"

Actual Results:  
The value of the top font list is Calibri (or maybe an other default font) in an italic style
When a new font is set via the "style and formatting" menu, nothing happens

Expected Results:
The value of the top font list is the custom one
When a new font is set via the "style and formatting" menu, all texts in all pages are updated with the new font


Reproducible: Always

User Profile Reset: No

Additional Info:
The custom font is "Myriad Pro" and is used in all courses documents of my shcool, thus I will share a modified version of one of these documents.
My system is an Linux Ubuntu distro, and the bug always occurred in the past.


User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0
Comment 1 emmanuel 2016-12-13 14:37:14 UTC
Created attachment 129585 [details]
A test file
Comment 2 emmanuel 2016-12-13 14:44:50 UTC
Created attachment 129587 [details]
Font issue, with Calibri font written in italic
Comment 3 emmanuel 2016-12-13 14:45:23 UTC
Created attachment 129588 [details]
Font OK, when manually edited
Comment 4 Adolfo Jayme Barrientos 2016-12-13 19:09:05 UTC Comment hidden (obsolete)
Comment 5 emmanuel 2016-12-14 10:44:44 UTC
(In reply to Adolfo Jayme from comment #4)
> > Version: 4.4.6.3
> 
> That version is long obsolete. Can you please upgrade to a newer, supported
> version of LibreOffice, such as 5.2.3, and see it you can reproduce the
> issue there?

My bad, some configuration issue.

It tried with the 5.2.3.3 release version, same issue.
Comment 6 Timur 2017-05-12 18:58:21 UTC
This file is affected by Bug 61134, maybe Bug 107804, and if you save as pptx also with Bug 95953.
But I didn't reproduce or understand this bug, because it's not very clear. 

"2. Look at the value of the font list is Calibri" What do you mean? In Normal or Slide Master view? Where to look? In Sidebar Properties or Format Character? Yes, it should be the same, but doesn't seem to be. 

"3. Set the font via the "style and formatting" How? Change Default style? 
But if you change style you still have direct formatting? 
For example, "Course plan" is directly formatted and it remains like that. 
Direct formatting via Character Properties works for that.
Comment 7 emmanuel 2017-05-13 15:24:42 UTC
Created attachment 133296 [details]
Demonstration of the issue (video)

Here is a video showing the issue.
The UI is french, but I doubt it changes anything.
Most of the time, Calibri is the default font, since it is displayed italic in the font box.
At 0:33, I try to set the font globally via the style and formatting menu, but nothing changes
At the very end, the slide is as it should be, using the correct font.
Hope it helps!
Comment 8 Timur 2017-05-17 09:32:48 UTC
Thank you. Looks like an issue with direct formatting because test file was created by direct applying Calibri font.
If you change style (from Liberation to Myriad) but text is already direct formatted (to Calibri), surely it will stay like that. 
Use Format-Default Formatting on some text prior to change to remove direct formatting and you'll see that you get expected result.
Custom font is not relevant, any font works like that, nor Linux, same is on Windows. 

So if you agree I'll close this as WFM. 
And open a new bug for what I wrote in https://bugs.documentfoundation.org/show_bug.cgi?id=95953#c5: "original text stays like that in Format-Character, while it changes in Sidebar-Properties". 
In the beginning, Format-Character or Text Formatting toolbar shows Calibri (albeit missing, real font set with direct formatting) but Sidebar-Properties-Character shows Liberation Sans (style font). That looks like a bug but it's different from what you reported. 

Also, apart from Bug 107804, I reported another bug here for Windows: Bug 107907.
Comment 9 Timur 2017-05-23 08:05:04 UTC
Since no response, I'll close. Actually, WFM is when bug was evident but it was resolved in unknown moment. So this is NotABug.
If I'm wrong or didn't understand the issue, feel free to respond and set back to Unconfirmed.