Bug 93467 - Current font name is not available
Summary: Current font name is not available
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.0.0.5 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-16 17:09 UTC by hiangel999
Modified: 2015-08-16 20:26 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
The buggy file (20.50 KB, application/vnd.oasis.opendocument.text)
2015-08-16 17:09 UTC, hiangel999
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hiangel999 2015-08-16 17:09:12 UTC
Created attachment 117947 [details]
The buggy file

I have a file produced by Pandoc, and apply styles to it.

For the text of the attached file a style "Source Code" used, with a font "Times New Roman". But LibreOffice falls back to "Consolas", and the font name have a floating message «The current font is not available and will be substitued».

Font is definitely fine — the whole document uses that font. But text pieces with the "Source Code" style for some reason fail like this one.
Comment 1 Jean-Baptiste Faure 2015-08-16 18:32:27 UTC
No, your document use the font Consolas which is not installed on your PC and on mine. You can see that by the fact that the font name is shown in italic.
The style "Source Code" uses the Times New Roman font but this font has been overwritten with Consolas by manual formatting.

Not a bug.

Closing as NotABug.

Best regards. JBF
Comment 2 hiangel999 2015-08-16 18:37:35 UTC
Jean-Baptiste Faure, wait, but if this is the case, I should be able to select the text, and use the submenu «Right Mouse button → Clear Direct Formatting» to fix that, right? But the action does not fix that.
Comment 3 hiangel999 2015-08-16 18:45:52 UTC
Another way that should work if that was the case — saving a style for the "Source Code" in a separate file, and next overwriting it with «Styles and Formatting → Load Styles… → From File…» with checkmarks there being set.

And this doesn't work either.
Comment 4 Jean-Baptiste Faure 2015-08-16 20:26:34 UTC
(In reply to hiangel999 from comment #2)
> Jean-Baptiste Faure, wait, but if this is the case, I should be able to
> select the text, and use the submenu «Right Mouse button → Clear Direct
> Formatting» to fix that, right? But the action does not fix that.

Indeed and it is the case if you add a manual formatting to some chunk of the text, but you can't restore the correct font using this mean.
I do not know how this font is assigned to the text by the document generator and, before deciding that that is a LO bug, we should be sure that the document generator produces conforming ODF document.

Best regards. JBF