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.
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
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.
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.
(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